开发者 | vishwasr |
---|---|
更新时间 | 2025年6月26日 16:26 |
PHP版本: | 7.4 及以上 |
WordPress版本: | 6.8 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
composer install
in the plugin directory (wp-content/plugins/pdf-invoicex
) to install vendor/autoload.php
.vendor
folder.wp-content/uploads/pdf-invoicex-invoices/
and your system’s temporary directory (e.g., /tmp/
) are writable.This error may occur if:
composer install
in the plugin directory.wp-content/uploads/pdf-invoicex-invoices/
directory or system temp directory is not writable. Check server permissions (e.g., chmod 775
).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.The default template is in templates/default.php
. To create a custom template:
default.php
to your theme’s pdf-invoicex
folder (e.g., wp-content/themes/your-theme/pdf-invoicex/custom.php
).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;
});
Yes! In WooCommerce > PDF Invoice > Emails, select which WooCommerce emails (e.g., “Completed Order”) should include the PDF invoice as an attachment.
Ensure the WordPress media library is enabled. If you see “Media library failed to load,” check:
In the WooCommerce > Orders list: