Oli PDF Invoices & Packing Slips for WooCommerce
Generate and print PDF invoices, packing slips, delivery notes, shipping labels, and credit notes for WooCommerce orders. Customize templates, auto-attach to emails, and manage sequential invoice numbering.
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/olivierbigras/oli-woocommerce-pdf-invoices-packing-slips-delivery-notes-and-shipping-labels/archive/refs/heads/main.zipA comprehensive WooCommerce plugin for generating professional PDF invoices, packing slips, delivery notes, and shipping labels.
Features
- Sequential Invoice Numbering - Customizable prefix, suffix, padding, and start number
- Auto Email Attachments - Attach invoices to WooCommerce customer emails
- Multiple Document Types - Invoices, packing slips, delivery notes, shipping labels, and credit notes
- Label presets - A4, Letter, 4x6, 4x4, custom size, multiple labels per sheet
- Bulk Operations - Download multiple PDFs as ZIP from orders list
- Customer Downloads - Let customers download invoices from My Account
- Template Customization - Logo, company info, VAT/tax numbers, colors, show/hide fields
- Theme Overrides - Override templates in your theme folder
- Multi-Currency - Displays order currency correctly
- RTL Support - Full right-to-left language support
- HPOS Compatible - Works with WooCommerce High-Performance Order Storage
- Migration Tool - Import from WebToffee Print Invoices plugin
Installation
From GitHub
- Clone this repository or download the ZIP
- IMPORTANT: Run
composer install --no-devto install dependencies (Dompdf) - Upload to
/wp-content/plugins/oli-pdf-invoices-packing-slips/ - Activate through WordPress admin
- Configure at WooCommerce > PDF Documents
Note: A development checkout needs
composer install --no-dev. The release zip frombash tools/build-zip.shalready includesvendor/and works without Composer on the server.
Requirements
- WordPress 6.5 or higher
- WooCommerce 9.0 or higher
- PHP 7.4 or higher
Development
Setup
composer install
Code Quality
Run PHP lint:
find . -name "*.php" ! -path "./vendor/*" -exec php -l {} \;
Run PHPCS:
composer phpcs
Run standalone tests:
php tests/run-webtoffee-format-tests.php
php tests/run-upgrade-and-guardrail-tests.php
Build a release zip (includes vendor/):
bash tools/build-zip.sh
Translations
The plugin is translation-ready with:
- POT file for translators
- French translation included
- Compatible with WPML and TranslatePress
Template Override
Copy templates from templates/ to yourtheme/oli-pdf-templates/:
invoice.phppacking-slip.phpdelivery-note.phpshipping-label.phpcredit-note.php
Migration from WebToffee
- Go to WooCommerce > PDF Documents > Migration
- Run "Dry Run (Preview)" to see what will be imported
- Click "Run Migration" to import settings and invoice numbers
- Existing invoice numbers are preserved
Hooks & Filters
Actions
oli_pdf_invoice_generated- Fired when an invoice is generated
Filters
All standard WordPress filters apply to content.
Credits
Author: Olivier Bigras
Website: https://olivierbigras.com/
License: GPL-2.0-or-later
Support
For issues and feature requests, use the GitHub issue tracker:
Changelog
See CHANGELOG.md for version history.