Advanced Discounts documentation
Build Craft Commerce discounts from cart rules, with tiers, coupon codes, and promotional messages.
Where to go#
Getting started: a walkthrough from install to your first discount on a cart.
User guide:
- Discounts, creating a discount and structuring it into groups
- Cart conditions, the rules that decide when a discount applies
- Cart actions, what a group discounts once its rules match
- Coupon codes, gating a discount behind codes, added by hand or generated
- Messages, promotional copy for customers, with live figures
- Excluded variants, the variants every discount skips
- Troubleshooting, why a discount isn’t applying, and how it works alongside Commerce’s own discounts
Dev guide:
- Displaying promotional messages, rendering discount messages in Twig
- Reading discounts on the order, breaking a total discount down into the rules that produced it
- Adding a discount type, registering a type with its own action rules
Reference:
- Configuration, the plugin settings and their defaults
- Events, the events you can listen for
- Permissions, the Commerce permissions each screen and action requires
Recipes:
- Site-wide coupon, 10% off everything with a coupon code
- Timed product discount, 5% off a set of products for one week
- Buy one, get one free, a Buy X, Get Y promotion
- Tiered sale, a bigger discount for a bigger cart, with messages
Roadmap: ideas under consideration.