Home โ€บ Modules โ€บ phyto_bundle_builder

phyto_bundle_builder

Customer-facing bundle creator โ€” slot-based configuration, AJAX product picker, combined bundle discount, and admin bundle management.

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

Overview

Lets customers build their own plant bundles from slot-based templates you define. They pick products to fill each slot, get a combined bundle discount, and add the whole bundle to cart in one click. You manage bundle templates and discounts from admin.

How It Works

  1. Admin creates a bundle template: name, number of slots, eligible product categories per slot, and discount %
  2. Customer visits the bundle builder page, selects a template
  3. AJAX product picker lets them search and choose a product for each slot
  4. Bundle summary shows total price with discount applied
  5. “Add Bundle to Cart” adds all selected products with the combined discount as a cart rule

Features

  • Slot-based templates (e.g. “3-plant starter bundle: 1 Nepenthes + 1 Heliamphora + 1 Sarracenia”)
  • AJAX product search per slot (filters by eligible categories)
  • Combined bundle discount applied as a cart rule (not a fake price reduction)
  • Bundle compositions saved to DB โ€” admin can see what bundles customers built
  • Mobile-responsive bundle builder UI

Source Layout

PathPurpose
phyto_bundle_builder.phpModule entry + menu registration
classes/PhytoBundle.phpORM for bundle templates
classes/PhytoBundleSlot.phpORM for slot definitions
controllers/front/builder.phpBundle builder page
controllers/front/products.phpAJAX product search endpoint
controllers/admin/AdminPhytoBundleBuilderController.phpBundle template management
views/templates/front/builder.tplBundle builder UI
views/js/front.jsAJAX slot interaction + cart add
View Full Source โ†— โ† Back to All Modules