
Document Preview For WooCommerce
v1.6.4wbcomdesigns · 2017年1月10日 上架
Add document previews to WooCommerce product pages. Let customers view PDFs, Word, Excel, and cloud documents before they buy.
- 正在使用
- 100+
- 评分
- 3.3 / 5
- 累计下载
- 6,582
- 最近更新
- 2026年11月20日
截图



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
- 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.