Example #1
0
 /**
  * Clear all coupons in session.
  */
 public function clearAllCoupons()
 {
     // Tell coupons to clear any data they may have stored
     $this->couponManager->clear();
     $this->request->getSession()->setConsumedCoupons(array());
     $this->updateOrderDiscount(null);
 }
Example #2
0
 /**
  * Clear all coupons in session.
  *
  * @param Event $event
  * @param $eventName
  * @param EventDispatcherInterface $dispatcher
  */
 public function clearAllCoupons(Event $event, $eventName, EventDispatcherInterface $dispatcher)
 {
     // Tell coupons to clear any data they may have stored
     $this->couponManager->clear();
     $this->getSession()->setConsumedCoupons(array());
     $this->updateOrderDiscount($event, $eventName, $dispatcher);
 }