跳到内容

Document Preview For WooCommerce

v1.6.4

wbcomdesigns · 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日
3 条评价需要 WordPress 6.5+已测试到 7.1.5PHP 8.1+

截图

Document preview modal on the product page : The Thickbox modal open showing a PDF document rendered inside the browser. The customer stays on the product page while the document is open, with a close button visible.
Document preview modal on the product page : The Thickbox modal open showing a PDF document rendered inside the browser. The customer stays on the product page while the document is open, with a close button visible.
Preview button on the product page : The "Preview" button displayed on the WooCommerce single product page below the Add to Cart form, showing how it appears to customers before clicking.
Preview button on the product page : The "Preview" button displayed on the WooCommerce single product page below the Add to Cart form, showing how it appears to customers before clicking.
Preview Documents meta box — admin : The product editor meta box showing a document row with a label field, a URL/file input, and a Media Library upload button. The Add button for additional rows is also visible.
Preview Documents meta box — admin : The product editor meta box showing a document row with a label field, a URL/file input, and a Media Library upload button. The Add button for additional rows is also visible.

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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums