iHumbak WooCommerce Invoices WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA
WooCommerce plugin supporting invoicing orders.
Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/michalstaniecko/ihumbak-woo-invoices/releases/download/v0.6.6/ihumbak-invoices-0.6.6.zipA comprehensive WordPress/WooCommerce plugin for generating VAT invoices, receipts, credit notes, and receipt returns with PDF export capabilities.
Features
- VAT Invoices - Generate professional invoices with automatic numbering
- Receipts - Create receipts for cash and card transactions
- Credit Notes - Issue correction documents for invoices
- Receipt Returns - Document returns for receipts
- PDF Export - Generate and download PDF documents using DOMPDF
- WooCommerce Integration - Import order data with one click
- Customer Portal - Customers can view and download their documents from My Account
- Email Notifications - Automatically send documents via email
- Monthly Reports - Generate reports with CSV export
- Multi-language Support - Full internationalization (i18n) with Norwegian translation included
- Template Overrides - Customize PDF templates via theme directory
- HPOS Compatible - Supports WooCommerce High-Performance Order Storage
Requirements
| Requirement | Minimum Version |
|---|---|
| PHP | 8.0+ |
| WordPress | 6.0+ |
| WooCommerce | 7.0+ |
Installation
From ZIP file
- Download the latest release ZIP file
- Go to WordPress Admin > Plugins > Add New > Upload Plugin
- Upload the ZIP file and click Install Now
- Activate the plugin
From Source (Development)
# Clone the repository
git clone https://github.com/ihumbak/woo-invoices.git
# Install dependencies
cd woo-invoices
composer install
Configuration
After activation, configure the plugin at WooCommerce > Invoices > Settings:
Seller Settings
- Company name, address, and contact information
- Tax ID (NIP) for VAT purposes
- Bank account details
Numbering Settings
- Custom patterns for each document type
- Supported tokens:
{YYYY},{MM},{DD},{NNNN} - Example:
INV/{YYYY}/{MM}/{NNNN}producesINV/2025/01/0001
PDF Settings
- Select template set
- Logo upload
- Paper size configuration
Automation Settings
- Auto-send emails when documents are issued
- Configure which document types trigger emails
Usage
Creating Documents
- Navigate to WooCommerce > Invoices
- Click Add Invoice, Add Receipt, or Add Credit Note
- Fill in the document details or import from a WooCommerce order
- Save as draft or issue immediately
- Download PDF or send via email
From Order Page
- Open any WooCommerce order
- Use the Documents meta box to create documents
- Click Create Invoice or Create Receipt
- Document is pre-filled with order data
Customer Portal
Customers can access their documents from My Account > Invoices and download PDFs directly.
Document Types
| Type | Description | Use Case |
|---|---|---|
| Invoice | VAT invoice | B2B transactions, tax documentation |
| Receipt | Sales receipt | B2C transactions, POS sales |
| Credit Note | Invoice correction | Returns, price adjustments for invoices |
| Receipt Return | Receipt correction | Returns for receipt-based sales |
Template Customization
PDF templates can be overridden in your theme:
wp-content/themes/your-theme/ihumbak-invoices/default/
├── invoice.php
├── receipt.php
├── credit-note.php
├── receipt-return.php
└── styles.css
Create a custom template set by adding a new directory (e.g., my-template/) and selecting it in settings.
Hooks & Filters
Actions
// After document is created
do_action('ihumbak_document_created', $document);
// After document is issued
do_action('ihumbak_document_issued', $document);
// Before PDF is generated
do_action('ihumbak_before_pdf_render', $document);
Filters
// Modify document number pattern
add_filter('ihumbak_numbering_pattern', function($pattern, $type) {
return $pattern;
}, 10, 2);
// Custom capability for managing documents
add_filter('ihumbak_manage_documents_capability', function($cap) {
return 'manage_woocommerce';
});
See docs/HOOKS-API.md for complete reference.
Development
Directory Structure
ihumbak-woo-invoices/
├── assets/ # CSS and JavaScript files
├── docs/ # Documentation
├── languages/ # Translation files
├── src/ # PHP source code
│ ├── Contracts/ # Interfaces
│ ├── Core/ # Plugin core, activation, settings
│ ├── Exceptions/ # Custom exceptions
│ ├── Infrastructure/ # Services, repositories
│ ├── Models/ # Data models
│ └── Modules/ # Feature modules (Admin, PDF, Email, etc.)
├── templates/ # Template files
│ ├── admin/ # Admin UI templates
│ ├── emails/ # Email templates
│ ├── frontend/ # Customer portal templates
│ └── pdf/ # PDF templates
├── tests/ # PHPUnit tests
└── vendor/ # Composer dependencies
Commands
# Run tests
composer test
# Check coding standards
composer phpcs
# Fix coding standards
composer phpcbf
# Run static analysis
composer phpstan
# Run all checks
composer check
Coding Standards
- PSR-4 autoloading
- WordPress Coding Standards (WPCS)
- PHP 8.0+ with strict types
- Full type hints for parameters and return values
Documentation
| Document | Description |
|---|---|
| DATABASE.md | Database schema |
| HOOKS-API.md | Hooks and filters reference |
| CONFIGURATION.md | Plugin configuration |
| DOCUMENT-TYPES.md | Document types guide |
| RELEASE.md | Release process |
Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes following the coding standards
- Run all checks (
composer check) - Commit your changes (
git commit -m 'feat: add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This plugin is licensed under the GPL-2.0-or-later.
Support
Credits
Developed by iHumbak
Releases
22 releases. Each count is every asset in that release; expand a row for the breakdown.