Document Preview For WooCommerce
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 w
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
- 01Edit any WooCommerce product in your admin
- 02Scroll down to the “Preview Documents” meta box
- 03Enter a descriptive label and either upload a file from the Media Library or paste a document URL
- 04Save the product
- 05A “Preview” button appears on the product page automatically, just below the Add to Cart form
- 06Customers 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