Description
In this episode of Sylius Academy, we demonstrate how to bring your cart promotion logic to the next level by introducing custom product filters. While your actions (like fixed unit pricing) may work across the entire cart by default, you’ll learn how to restrict them to specific products – based on brand, category, or price range.
You'll discover:
- How built-in Sylius filters work and where they're applied
- How to build a custom filter (e.g. by brand)
- How to combine multiple filters with a CompositePromotionFilter
- How to apply filters only to selected promotion actions
This episode is a hands-on guide to building precision-driven promotions in Sylius – perfect for real-world campaigns where discounts need to be narrowly scoped and carefully targeted.