WC Document Preview

plugin banner

This plugin will add an extended feature to the big name “ WooCommerce ” that will allow you to add document preview feature in single product pag

Author:wbcomdesigns (profile at wordpress.org)
WordPress version required:6.5
WordPress version tested:7.1.5
Plugin version:1.6.4
Added to WordPress repository:10-01-2017
Last updated:19-11-2026
Rating, %:66
Rated by:3
Plugin URI:http://wbcomdesigns.com
Total downloads:6 627
Active installs:100+
plugin download
Click to start download

Document Preview For WooCommerce adds a document preview button to your WooCommerce single product pages. When a customer clicks the button, the document opens in a clean modal popup (powered by WordPress Thickbox), allowing them to read or browse the content without leaving the product page — and without downloading the file.

This is the ideal solution for stores selling eBooks, PDFs, templates, spreadsheets, presentations, manuals, and any other digital or downloadable document product. Showing customers a meaningful preview before purchase significantly reduces uncertainty and increases confidence at the point of sale.

How It Works

  1. Edit any WooCommerce product in your admin
  2. Scroll down to the “Preview Documents” meta box
  3. Enter a descriptive label and either upload a file from the Media Library or paste a document URL
  4. Save the product
  5. A “Preview” button appears on the product page automatically, just below the Add to Cart form
  6. Customers click the button to open the document in a full-size modal popup

Key Features

Supported File Formats

  • PDF (.pdf) — rendered locally on your site by the bundled pdf.js viewer, with no request to Google or any third party (works on local, staging, and firewalled sites)
  • Word Documents (.doc, .docx) — previewed via Google Docs Viewer (needs a publicly reachable file URL)
  • Excel Spreadsheets (.xls, .xlsx) — previewed via Google Docs Viewer (needs a publicly reachable file URL)
  • PowerPoint Presentations (.ppt, .pptx) — previewed via Google Docs Viewer (needs a publicly reachable file URL)
  • Plain Text (.txt) — displayed in a formatted text reader

Cloud Document Support

  • Google Docs — paste a published or shareable Google Docs link
  • Google Sheets — paste a shareable Google Sheets link
  • Google Slides — paste a shareable Google Slides link
  • OneDrive — paste a Microsoft OneDrive shared document link
  • Dropbox — paste a Dropbox shared link (automatically converted for embedding)

Document Management

  • Multiple documents per product — add as many preview files as needed
  • Each document gets its own labelled preview button on the product page
  • Upload files directly from the WordPress Media Library
  • Or paste any external document URL — no file upload required
  • Remove individual documents without affecting others

Preview Display

  • Documents open in a WordPress Thickbox modal popup (900x700px)
  • Customers stay on the product page while previewing
  • Clean, focused preview experience with no distractions
  • Supported on all modern desktop and mobile browsers

Performance and Compatibility

  • Minified CSS and JavaScript assets included
  • RTL (right-to-left) stylesheet support
  • Mobile-responsive preview button and modal layout
  • Compatible with standard WooCommerce product page hooks
  • No external JavaScript libraries required beyond jQuery and WordPress Thickbox

Perfect For

  • eBook stores (PDF previews of chapters or sample pages)
  • Template marketplaces (Word/Excel/PowerPoint template previews)
  • Software documentation (user manual previews)
  • Legal and compliance document stores (contract templates)
  • Educational resource stores (worksheet and course material previews)
  • Any WooCommerce store where document content is central to the buying decision

Pro Version

A Pro version is available with advanced features including document watermarking, partial-page preview control, and multi-vendor marketplace support. Visit wbcomdesigns.com for details.


Screenshots
FAQ
ChangeLog