Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 868 Bytes

File metadata and controls

22 lines (14 loc) · 868 Bytes

outdated

Coupon based promotions

Danger

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.

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.

PromotionCoupon controller

The Sylius\Bundle\PromotionBundle\Controller\PromotionCouponController provides a method for generating new coupons.