Home โ€บ Modules โ€บ phyto_phytosanitary

phyto_phytosanitary

Manage phytosanitary certificates, import permits, and regulatory PDFs per product โ€” colour-coded validity tracking, public download, and automatic packing-slip references.

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

Overview

Manages phytosanitary certificates, import permits, and other regulatory PDFs per product. Upload the document, set an expiry date, and the module tracks validity with colour-coded badges. Documents can be made public for buyer download. References auto-append to packing slips.

Validity Badges

StatusColourCondition
ValidGreenExpiry > 30 days away
Expiring SoonAmberExpiry โ‰ค 30 days
ExpiredRedPast expiry date
No DocumentGreyNo PDF uploaded

Features

  • Upload PDF per product with expiry date
  • Public/private toggle (public = downloadable from product page)
  • Admin dashboard of all documents sorted by expiry
  • Certificate reference auto-appended to packing slip PDF
  • Email alert when a certificate is expiring within 14 days

Source Layout

PathPurpose
phyto_phytosanitary.phpModule entry + hooks
classes/PhytoSanitaryDoc.phpORM for document records
controllers/admin/AdminPhytoPhytosanitaryController.phpDocument management
controllers/front/download.phpPublic PDF download
sql/install.sqlCreates document table
views/templates/hook/product_badge.tplValidity badge on product page
View Full Source โ†— โ† Back to All Modules