For OpenCart 2.3, 3.0, 4.0 and 4.1
Three kinds of rule
- Tiered discount: "10% off at 150, 20% off at 300". Tiers are reached by the value of the matching products or by the number of matching items. The highest tier reached applies. Each tier is a percentage or a fixed amount.
- Buy X get Y: for example buy 2 get 1 free, or buy 3 get 1 at 50% off. The cheapest units in each group are the discounted ones. Optional limit on how many times the offer applies in one cart.
- Free gift: a chosen product is added to the cart by itself when the cart reaches a minimum spend or a minimum number of items. It is resized when the quantity changes and removed again when the conditions stop holding.
Who and what it applies to
- Every rule can be limited to chosen categories, chosen products and chosen customer groups. Empty means the whole cart and everybody.
- Optional start and end dates and an on/off switch per rule.
- Priority order (lowest number first). A rule can be exclusive: when it applies, later rules do not. Rules that are not exclusive stack, and a line is never discounted below zero.
Correct money
- The discount is a cart total line, so the order total and the order history agree. VAT is reduced in proportion, by tax class of the discounted products.
- A gift product with a required option, or a minimum order quantity above the gift quantity, is refused when the rule is saved. An out-of-stock gift is taken out of the cart so it can never block checkout.
- A shopper cannot fake a gift line by sending a forged option; it earns no free credit.
Hints for the shopper
- A line above the cart such as "Spend 49.00 more to get 10% off" or "Add 2 more items to get a free gift", for the next step the shopper can reach (up to three). On or off, with an accent colour.
- Every shopper-facing text is in a language file in the module; copy it into another language folder and translate the right side of each line.
For the store owner
- One admin page: settings, the list of rules, and an inline editor with product search.
- Rules are checked when saved (type, dates, tiers, numbers, gift product). A rule whose chosen categories, products or customer groups no longer exist is refused instead of widening to the whole store.
- Uninstall removes the settings, the events and the gift lines from open carts. The rules table is kept, so a reinstall brings your rules back.
Notes
- Gift lines are put in the cart when the shop works out the cart totals, so the cart page can reload once after an add.
- A free gift needs a product with no required options and a minimum order quantity not above the gift quantity.
- Buy X get Y looks at up to 20000 units per rule.
- The module installs its own cart total extension (under Extensions > Order Totals) and turns it on itself.
- There is no per-customer usage limit and no code entry; the core coupon keeps working beside it.