
內容簡介
OrderMint 是一款專為 WooCommerce 商店設計的外掛,能夠生成專業的 PDF 文件,包括發票、包裝單和運送標籤。此外掛完全自給自足,無需外部連接,並可在本地伺服器上運行,提供安全且高效的文件管理解決方案。
【主要功能】
• PDF 發票:提供兩種可自訂的發票範本
• 包裝單:包含 SKU、數量、重量及訂單總額
• 運送標籤:簡單的送貨地址標籤
• 自動附加:將 PDF 發票自動附加至訂單郵件
• 批次操作:一次生成多個訂單的文件
• 系統狀態頁面:一鍵分享診斷報告
外掛標籤
開發者團隊
② 後台搜尋「OrderMint – PDF Invoices, Packing Slips & Shipping Labels for WooCommerce」→ 直接安裝(推薦)
原文外掛簡介
OrderMint adds professional PDF documents to your WooCommerce store. Generate invoices, packing slips, and shipping labels for any order — individually, in bulk, or automatically attached to WooCommerce order emails.
Fully self-contained. The PDF engine (mPDF) is bundled inside the plugin and runs entirely on your own server. OrderMint does not connect to any external service, does not download or install any code, plugins, themes, or libraries from remote sources, and works completely offline. Everything the plugin needs is included in the plugin package.
Features
PDF Invoices — two clean, customizable invoice templates with your logo, brand color, and footer text.
Packing Slips — warehouse-friendly slips with SKU, quantity, weight, and order totals.
Shipping Labels — simple delivery address labels with optional phone, email, and order number.
Sequential invoice numbering — configurable prefix, suffix, padding, and date tokens ({year}, {month}, {day}), with race-safe number assignment.
Email attachments — automatically attach the invoice PDF to New Order, Processing, Completed, and Customer Invoice emails.
My Account downloads — let customers download their invoice from the order details page, limited to order statuses you choose.
Bulk actions — generate documents for many orders at once from the WooCommerce orders list.
Modern settings dashboard — configure company details, templates, numbering, and email options from a single React-powered admin screen.
System Status page — one-click shareable diagnostics report (WordPress, server, PDF engine, WooCommerce) for painless support.
HTML preview mode — inspect the raw document HTML output when customizing templates.
HPOS compatible — works with WooCommerce High-Performance Order Storage.
Bundled PDF engine — the mPDF library ships with the plugin; nothing is downloaded or installed at runtime.
Requirements
WooCommerce 5.0 or newer
PHP 7.4 or newer with the mbstring and gd extensions
Bundled Libraries
OrderMint bundles the following GPL-compatible open-source libraries, which are included in the plugin package and loaded locally — nothing is fetched from the internet:
mPDF 8.3.1 — PDF generation engine. License: GPL-2.0-or-later. Source: https://github.com/mpdf/mpdf
setasign/FPDI 2.6.8 — PDF document importer used by mPDF. License: MIT. Source: https://github.com/Setasign/FPDI
mpdf/psr-http-message-shim 2.0.1 and mpdf/psr-log-aware-trait 2.0.0 — mPDF compatibility shims. License: MIT. Source: https://github.com/mpdf
psr/http-message 2.0 and psr/log 1.1.4 — PHP-FIG interface packages. License: MIT. Source: https://github.com/php-fig
myclabs/deep-copy 1.13.4 — object copying utility required by mPDF. License: MIT. Source: https://github.com/myclabs/DeepCopy
paragonie/random_compat 9.99.100 — empty compatibility stub for PHP 7+. License: MIT. Source: https://github.com/paragonie/random_compat
DejaVu fonts — document typefaces bundled with mPDF. License: Bitstream Vera / public domain. Source: https://dejavu-fonts.github.io/
React 18 and ReactDOM 18 — admin dashboard UI (compiled into assets/admin/js/dist/dashboard.bundle.js). License: MIT. Source: https://github.com/facebook/react
Source Code and Build Process
The admin dashboard is written in React (JSX). The complete human-readable source is included in this plugin package:
app/dashboard/src/ — React/JSX source files
package.json, vite.config.js, tailwind.config.js — build configuration
The compiled files in assets/admin/js/dist/ are produced from that source with Vite. To rebuild them yourself:
Install Node.js 18 or newer.
From the plugin directory run npm install.
Run npm run build — Vite compiles app/dashboard/src/ into assets/admin/js/dist/dashboard.bundle.js and dashboard.css.
External Services
OrderMint does not communicate with any external or third-party services. All PDF generation happens locally on your server using the bundled engine. No data leaves your site.
