Home โ€บ Modules โ€บ phyto_care_card

phyto_care_card

Auto-generate a printable PDF care guide per product using TCPDF โ€” attached to order confirmation emails and downloadable on-demand from the product page.

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

Overview

Generates a printable PDF care card for each product covering everything a buyer needs to know: light requirements, watering frequency, humidity, temperature range, potting media, dormancy notes, and more. Automatically attached to the order confirmation email.

Care Card Fields

  • Light requirements (Full sun / Partial shade / Low light)
  • Watering frequency and method
  • Humidity range (%)
  • Temperature min/max (ยฐC)
  • Potting media recipe
  • Fertilisation schedule
  • Dormancy / seasonal notes
  • Special care tips (free text)

Hooks Registered

HookPurpose
actionOrderStatusUpdateAttaches PDF to order confirmation email
displayProductAdditionalInfo“Download Care Card” button on product page
displayAdminProductsExtraAdmin care card data entry form
displayPDFInvoiceOptional inclusion on invoice

Source Layout

PathPurpose
phyto_care_card.phpModule entry + hooks
classes/PhytoCareCardGenerator.phpTCPDF wrapper โ€” builds the PDF
classes/PhytoCareCardData.phpORM model for care fields
controllers/front/download.phpPublic PDF download endpoint
controllers/admin/AdminPhytoCareCardController.phpAdmin data entry
sql/install.sqlCreates phyto_care_card_data table
View Full Source โ†— โ† Back to All Modules