add todo comment in coupon event
This commit is contained in:
@@ -124,6 +124,7 @@ class Coupon extends BaseAction implements EventSubscriberInterface
|
|||||||
// @todo insert false product in cart with the name of the coupon and the discount as negative price
|
// @todo insert false product in cart with the name of the coupon and the discount as negative price
|
||||||
|
|
||||||
// Decrement coupon quantity
|
// Decrement coupon quantity
|
||||||
|
// @todo move this part in after order event
|
||||||
$couponQuery = CouponQuery::create();
|
$couponQuery = CouponQuery::create();
|
||||||
$couponModel = $couponQuery->findOneByCode($coupon->getCode());
|
$couponModel = $couponQuery->findOneByCode($coupon->getCode());
|
||||||
$couponManager->decrementeQuantity($couponModel);
|
$couponManager->decrementeQuantity($couponModel);
|
||||||
|
|||||||
Reference in New Issue
Block a user