Home โ€บ Modules โ€บ phyto_collection_widget

phyto_collection_widget

Auto-builds each customer a 'My Collection' page from their order history โ€” public/private toggles, personal care notes, and a shareable link.

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

Overview

Automatically builds each customer a personal “My Collection” page populated from their order history. Each plant in the collection can be toggled public or private, and customers can add personal care notes to each one. A shareable link lets them show off their collection without exposing account details.

Features

  • Auto-populated from order history โ€” no manual entry needed
  • Per-plant public/private toggle
  • Personal care notes field per plant
  • Shareable public collection URL (token-based, account details hidden)
  • Beautiful plant card grid layout with product image and name

Hooks Registered

HookPurpose
displayCustomerAccount“My Plant Collection” link in account
actionOrderStatusUpdateAdds purchased plants to collection on order confirmation

Source Layout

PathPurpose
phyto_collection_widget.phpModule entry + hooks
classes/PhytoCollectionItem.phpORM for collection entries
controllers/front/collection.phpCustomer collection page
controllers/front/share.phpPublic shareable collection view
sql/install.sqlCreates collection items table
View Full Source โ†— โ† Back to All Modules