burdapraha / oc_invoice_pdf
Opencart 2.x invoice to PDF
Installs: 1 053
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 2
Open Issues: 0
Type:vqmod-plugin
Requires
- php: >=5.6.0
- dompdf/dompdf: ^0.8.0
- phenx/php-svg-lib: ^0.2.0
This package is not auto-updated.
Last update: 2025-01-05 22:31:13 UTC
README
note: developed on version 2.3.2, other versions can need some edits - fell free to contribute!
Installation
- Requiring installed vQmod because vQmod doesn't support installing via composer itself.
composer require burdapraha/oc_invoice_pdf
composer require sasedev/composer-plugin-filecopier
for files manipulating- Add this code to your composer.json project file, extra section:
"extra": {
"filescopier": [
{
"source": "vendor/burdapraha/oc_invoice_pdf/upload",
"destination": "upload",
"debug": "true"
}
]
}
It will move vQmod xml file to correct folder.
- add constant to your config.php & admin/config.php for storage PDF files:
For example:
define('INVOICES_DIR', DIR_IMAGE . '/invoices');
and fix this folder for reading from web by .htaccess - optionally you can add row to your
.gitignore
file with path to invoice_pdf.xml (example: upload/vqmod/xml/invoice_pdf.xml) - celebrate!
Credits
- using dompdf to printing
- inspired by Invoice to PDF
- hawkey for talking about solution