
ms3FirstTimeBuyerDiscount
First-order discount for MiniShop3 — auto-applied when 0 paid orders (percent or fixed)


Step-by-step setup of the first-order discount on a MiniShop3 site.
| Requirement | Version |
|---|---|
| MODX Revolution | 3.x |
| PHP | 8.1+ |
| MiniShop3 | installed |
MiniShop3 will call this plugin when calculating cart cost.
ftb_percent or fixed10 (10%) or 500 (500 fixed)See: System settings.
2,3 by default). This defines who is a first-time buyer.ms3_status_for_stat does not get the discountTo show a “First-order discount” block, add to the checkout page template:
[[!ms3ftbDiscountBanner]]{$modx->runSnippet('ms3ftbDiscountBanner', [])}The plugin loads the component CSS/JS on the page. For guests, the banner is refined after they enter email/phone via the eligibility endpoint.
Result: the discount is applied automatically during cart calculation; you don’t have to change templates — only the final total changes.