Home โ€บ Modules โ€บ phyto_wholesale_portal

phyto_wholesale_portal

Full B2B wholesale layer โ€” application workflow, tiered pricing, MOQ enforcement, and invoice-on-delivery for approved accounts.

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

Overview

Adds a complete wholesale layer to your store. Businesses apply for a wholesale account, you approve or reject, and approved customers get wholesale-only pricing with MOQ rules enforced in the cart. Optional invoice-on-delivery payment method for approved accounts.

Application Workflow

  1. Business fills in application form (business name, GST, website, expected order volume)
  2. Admin reviews in “Wholesale Applications” panel โ€” approve or reject
  3. Approved customers see a “Wholesale” badge and unlocked pricing on their account page
  4. Cart enforces MOQ per product; below-MOQ items show a warning not a block

Pricing Tiers

TierConditionDiscount
BronzeApprovedConfigurable % off retail
SilverConfigurable spend thresholdHigher %
GoldConfigurable spend thresholdHighest %

Source Layout

PathPurpose
phyto_wholesale_portal.phpModule entry + hooks
classes/PhytoWholesaleApplication.phpORM for applications
classes/PhytoWholesalePricing.phpTier pricing logic
controllers/front/apply.phpApplication form
controllers/admin/AdminPhytoWholesaleController.phpApplication review + tier management
sql/install.sqlCreates application + pricing tables
View Full Source โ†— โ† Back to All Modules