burdapraha/oc_invoice_pdf
Composer 安装命令:
composer require burdapraha/oc_invoice_pdf
包简介
Opencart 2.x invoice to PDF
README 文档
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_pdfcomposer require sasedev/composer-plugin-filecopierfor 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
.gitignorefile 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
统计信息
- 总下载量: 1.05k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-05-31