Skip to content

💳 Opencart 2.3.x invoice to PDF and mail sending in attachment

License

Notifications You must be signed in to change notification settings

BurdaPraha/oc_invoice_pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Invoices to PDF for OpenCart 2.x

note: developed on version 2.3.2, other versions can need some edits - fell free to contribute!

Installation

  1. Requiring installed vQmod because vQmod doesn't support installing via composer itself.
  2. composer require burdapraha/oc_invoice_pdf
  3. composer require sasedev/composer-plugin-filecopier for files manipulating
  4. 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.

  1. 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
  2. optionally you can add row to your .gitignore file with path to invoice_pdf.xml (example: upload/vqmod/xml/invoice_pdf.xml)
  3. celebrate!

Credits