In this Sylius Academy episode, we dive deep into the mechanics of cart promotions – discounts applied directly to the shopping cart, rather than to product listings or detail pages. We explain the architecture of promotions in Sylius, based on two key components: rules, which define the conditions under which a promotion applies, and actions, which define what happens when those conditions are met – usually in the form of discounts.
You’ll learn how to use built-in rules such as minimum cart value, presence of specific products, or the customer’s order history. You’ll also explore available action types – from percentage discounts to free shipping – and how to apply filtering to them.
We walk through practical configuration examples of three types of promotions: a seasonal dress discount, free shipping above a cart value threshold, and an exclusive Black Friday coupon-based promotion. We also explain how the Sylius promotion engine works, including priority rules and the logic behind exclusive promotions.