diff --git a/core/lib/Thelia/Action/Coupon.php b/core/lib/Thelia/Action/Coupon.php index 2c8fa9b01..4dc708394 100644 --- a/core/lib/Thelia/Action/Coupon.php +++ b/core/lib/Thelia/Action/Coupon.php @@ -114,6 +114,9 @@ class Coupon extends BaseAction implements EventSubscriberInterface */ public function clearAllCoupons() { + // Tell coupons to clear any data they may have stored + $this->couponManager->clear(); + $this->request->getSession()->setConsumedCoupons(array()); } @@ -348,7 +351,7 @@ class Coupon extends BaseAction implements EventSubscriberInterface } } - // Clear all coupouns. + // Clear all coupons. $event->getDispatcher()->dispatch(TheliaEvents::COUPON_CLEAR_ALL); }