Home โ€บ Modules โ€บ phyto_invoice_customizer

phyto_invoice_customizer

Customises PS8 PDF invoices to include phytosanitary certificate refs, TC batch numbers, Live Arrival Guarantee text, and a branded header/footer.

Invoicing & Notifications v1.0 PrestaShop 8 Browse Source on GitHub โ†—
modules/phyto_invoice_customizer/
Direct path in the repo โ†’ all PHP, SQL, templates, and assets
Open on GitHub โ†—

Overview

Customises PrestaShop’s PDF invoice output to include plant-commerce-specific information: phytosanitary certificate references from phyto_phytosanitary, TC batch codes from phyto_tc_batch_tracker, Live Arrival Guarantee text where applicable, and a fully branded header/footer.

What Gets Added to Invoices

SectionContent Added
HeaderPhyto Commerce logo, shop tagline, green brand bar
Per line itemTC batch code and generation (if TC product)
Below line itemsPhytosanitary certificate reference + expiry
Footer topLive Arrival Guarantee terms (if LAG order)
Footer bottomRegulatory disclaimer, shop contact

Integration Points

  • phyto_phytosanitary โ€” reads cert reference + expiry per product
  • phyto_tc_batch_tracker โ€” reads batch code + generation per line item
  • phyto_live_arrival โ€” checks if order has LAG coverage for footer text

Source Layout

PathPurpose
phyto_invoice_customizer.phpModule entry + hooks
classes/PhytoInvoiceRenderer.phpBuilds custom invoice blocks
views/templates/pdf/invoice.tplOverride of PS invoice Smarty template
views/templates/pdf/invoice.style.tplCustom PDF CSS styles
View Full Source โ†— โ† Back to All Modules