Linux 软件免费装
Banner图

PDF InvoiceX - PDF Invoice for WooCommerce

开发者 vishwasr
更新时间 2025年6月26日 16:26
PHP版本: 7.4 及以上
WordPress版本: 6.8
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce e-commerce pdf billing invoice

下载

1.0.0

详情介绍:

PDF InvoiceX is a lightweight plugin that enables store owners to generate professional PDF invoices for paid WooCommerce orders. With an intuitive settings interface, customizable templates, and seamless integration with WooCommerce, this plugin enhances your store’s billing process. Key Features

安装:

  1. Upload the Plugin:
  2. Download the plugin ZIP file.
  3. In your WordPress admin, go to Plugins > Add New > Upload Plugin.
  4. Upload the ZIP file and click "Install Now."
  5. Activate the Plugin:
  6. After installation, click "Activate Plugin."
  7. Install Dependencies:
  8. mPDF is already included in the plugin.
  9. Run composer install in the plugin directory (wp-content/plugins/pdf-invoicex) to install vendor/autoload.php.
  10. Alternatively, manually download mPDF and place it in the plugin’s vendor folder.
  11. Configure Settings:
  12. Go to WooCommerce > PDF InvoiceX in the admin menu.
  13. Set up General (logo, address, invoice numbers), Template, and Email settings.
  14. Save changes to start generating invoices.
  15. Verify Permissions:
  16. Ensure wp-content/uploads/pdf-invoicex-invoices/ and your system’s temporary directory (e.g., /tmp/) are writable.
Note: Requires WooCommerce 3.5 or higher. PHP 7.4+ is recommended for mPDF compatibility.

屏幕截图:

  • **Settings Page**: Template Tab to select PDF template.
  • **Settings Page**: Emails Tab to select which WooCommerce emails should PDF Invoice be included.
  • **Order Details Meta Box**: Access invoices from the order edit page.
  • **Admin Orders Page**: Download PDF invoices in bulk directly from the orders list.
  • **Frontend My Account**: Customers can download invoices from their order history.
  • **Frontend Individual Order**: Customers can download invoices from individual orders.

常见问题:

Why am I seeing "Failed to generate PDF"?

This error may occur if:

  • mPDF is not installed. Run composer install in the plugin directory.
  • The wp-content/uploads/pdf-invoicex-invoices/ directory or system temp directory is not writable. Check server permissions (e.g., chmod 775).
  • The template file (templates/default.php) is missing or corrupted. Ensure it exists in the plugin’s templates folder. Enable WP_DEBUG in wp-config.php and check wp-content/debug.log for detailed errors.

How do I customize the invoice template?

The default template is in templates/default.php. To create a custom template:

  1. Copy default.php to your theme’s pdf-invoicex folder (e.g., wp-content/themes/your-theme/pdf-invoicex/custom.php).
  2. Modify the HTML/CSS as needed.
  3. Use the pdfinvx_templates filter to register your template: php add_filter('pdfinvx_templates', function($templates) { $templates['custom'] = [ 'name' => __('Custom Template', 'pdf-invoicex'), 'image' => get_theme_file_uri('/pdf-invoicex/custom.jpg'), // Path to preview image 'description' => __('A custom invoice template tailored for your brand.', 'pdf-invoicex') ]; return $templates; });
  4. Select your template in WooCommerce > PDF Invoice > Template.

Can I attach invoices to specific emails?

Yes! In WooCommerce > PDF Invoice > Emails, select which WooCommerce emails (e.g., “Completed Order”) should include the PDF invoice as an attachment.

Why is the logo upload not working?

Ensure the WordPress media library is enabled. If you see “Media library failed to load,” check:

  • JavaScript errors in the browser console (DevTools).
  • WordPress permissions for media uploads.
  • Plugin conflicts with other media-related plugins.

How do I generate invoices in bulk?

In the WooCommerce > Orders list:

  1. Select multiple paid orders.
  2. Choose “Generate PDF Invoices” from the Bulk Actions dropdown.
  3. Click “Apply” to download a ZIP file containing all invoices.

更新日志:

1.0.0