|
|
@@ -11,6 +11,9 @@ use Symfony\Component\HttpFoundation\RedirectResponse; |
|
|
|
use Symfony\Component\HttpFoundation\Request; |
|
|
|
use Symfony\Component\Routing\Annotation\Route; |
|
|
|
|
|
|
|
/** |
|
|
|
* @Route("/{section}/panier", name="frontend_cart_") |
|
|
|
*/ |
|
|
|
class CartController extends AbstractController |
|
|
|
{ |
|
|
|
protected ProductFamilyInterface $productFamily; |
|
|
@@ -79,7 +82,7 @@ class CartController extends AbstractController |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Route("/order-reduction-cart/delete/{id}", name="frontend_cart_delete_reduction_cart") |
|
|
|
* @Route("/order-reduction-cart/delete/{id}", name="delete_reduction_cart") |
|
|
|
*/ |
|
|
|
public function deleteReductionCart(Request $request): RedirectResponse |
|
|
|
{ |
|
|
@@ -102,7 +105,7 @@ class CartController extends AbstractController |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Route("/reduction-credit/add/{id}", name="frontend_order_cart_reduction_credit") |
|
|
|
* @Route("/reduction-credit/add/{id}", name="order_reduction_credit") |
|
|
|
*/ |
|
|
|
public function addReductionCredit(Request $request): RedirectResponse |
|
|
|
{ |
|
|
@@ -133,7 +136,7 @@ class CartController extends AbstractController |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Route("/order-reduction-credit/delete/{id}", name="frontend_cart_delete_reduction_credit") |
|
|
|
* @Route("/order-reduction-credit/delete/{id}", name="delete_reduction_credit") |
|
|
|
*/ |
|
|
|
public function deleteReductionCredit(Request $request): RedirectResponse |
|
|
|
{ |