6. Coupon based promotions¶
We’re sorry but this documentation section is outdated. Please have that in mind when trying to use it. You can help us making documentation up to date via Sylius Github. Thank you!
Coupon based promotions require special needs that are covered by this documentation.
6.1. Coupon generator¶
SyliusPromotionBundle provides a way of generating coupons for a promotion : the coupon generator.
Provided as a service
sylius.promotion_coupon_generator via the class
Sylius\Component\Promotion\Generator\PromotionCouponGenerator, its goal is to generate unique coupon codes.
6.2. PromotionCoupon controller¶
Sylius\Bundle\PromotionBundle\Controller\PromotionCouponController provides a method for generating new coupons.