xpay✦ Commerce
Directory
WooCommerce plugins
Document Preview For WooCommerce
Document Preview For WooCommerce
Add document previews to WooCommerce product pages. Let customers view PDFs, Word, Excel, and cloud documents before they buy.
3.3
(3 ratings)Will this break my store?
What the WordPress.org registry says about keeping Document Preview For WooCommerce running.
Tested to 7.1.5
Tested against the WordPress branch in use today.today
At least 1.4 releases a year since launch. WordPress.org only lists versions still available for download, so the real number may be higher.8.1
Your host must be running at least this version.6.5
woocommerce
These must be installed and active first.2
Maintenance & trust
Scored on how Document Preview For WooCommerce is looked after — not on how many stores run it.
92
out of 100Maintenance
35 / 35WordPress compatibility
20 / 20Support responsiveness
Not enough dataMerchant satisfaction
8 / 15Listing transparency
10 / 10Ratings
3.3
3 ratingsDocument 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
- Edit any WooCommerce product in your admin
- Scroll down to the “Preview Documents” meta box
- Enter a descriptive label and either upload a file from the Media Library or paste a document URL
- Save the product
- A “Preview” button appears on the product page automatically, just below the Add to Cart form
- 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.
Does this plugin require WooCommerce?
Yes. Document Preview For WooCommerce requires WooCommerce 3.0 or higher to be installed and active. The plugin will deactivate itself automatically if WooCommerce is not active, and will display an admin notice with a link to install or activate it.
What document file types are supported?
Locally uploaded files: PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, and TXT.
Cloud and embeddable URLs: Google Docs, Google Sheets, Google Slides, OneDrive, and Dropbox shared links are all supported and automatically embedded without requiring a file upload.
Can I add more than one document preview per product?
Yes. Each product can have multiple document previews. Use the “Add” button in the Preview Documents meta box to add as many rows as needed. Each document gets its own labelled preview button on the product page, so customers can select which document they want to view.
Should I upload files or use external URLs?
Both approaches work. Uploading files to the WordPress Media Library gives you full control over the files and keeps them on your server. Using external URLs (Google Drive, Dropbox, OneDrive) avoids using server storage and is convenient for documents you already host elsewhere. Note that external URLs must remain publicly accessible for the preview to work.
Can customers download the preview files?
The preview is designed as a view-only experience inside a modal popup. PDFs open in the bundled pdf.js viewer and Office files open in the Google Docs Viewer, both read-only interfaces. Some browsers may still offer download options from within the viewer frame, but there is no direct download link exposed through the plugin.
How does the modal preview work?
The plugin uses WordPress’s built-in Thickbox library to open documents in a full-screen overlay modal. The document is embedded in an iframe within the modal. Customers can close the preview by clicking outside the modal or pressing Escape.
What happens if a preview is not loading?
Common causes and fixes: (1) PDFs render locally via the bundled pdf.js viewer and do not depend on Google — so a PDF that will not load is usually a file-path or cache issue, not a reachability one. Office formats and cloud links do need a publicly accessible URL; privately shared Google Drive or Dropbox links will not load. (2) Confirm the file format is supported (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, TXT). (3) Clear your site cache and browser cache. (4) Try a different browser or disable browser extensions. (5) Keep files under 50MB for reliable rendering. For persistent issues, contact the support team with details about the file type and hosting method.
Is the plugin compatible with Google Docs, Sheets, and Slides?
Yes. Paste a shareable link from Google Docs, Google Sheets, or Google Slides into the URL field. The plugin detects these URLs and embeds them using the appropriate Google preview endpoint, so customers see a clean, interactive preview of the document.
Does the plugin work with Dropbox or OneDrive links?
Yes. Dropbox shared links are automatically converted to direct embed URLs. OneDrive shared links are also supported and embedded via the Office Online viewer. Make sure your sharing settings allow public access to the linked file.
Is the plugin translation ready?
Yes. The plugin is fully internationalised with a .pot translation template file included. You can add translations through translate.wordpress.org or by placing .po/.mo files in the plugin’s languages/ directory.
Categories
Plugin details
Tags on WordPress.org
