public removeAction ( string $code ) : array | ||
$code | string | Coupon code |
리턴 | array |
public function removeAction($code)
{
/**
* @var CartInterface $cart
*/
$cart = $this->get('elcodi.wrapper.cart')->get();
$this->get('elcodi.manager.cart_coupon')->removeCouponByCode($cart, $code);
return $this->redirectToRoute('store_cart_view');
}