|
|
|
|
|
|
|
|
use Symfony\Component\HttpFoundation\Request; |
|
|
use Symfony\Component\HttpFoundation\Request; |
|
|
use Symfony\Component\Routing\Annotation\Route; |
|
|
use Symfony\Component\Routing\Annotation\Route; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @Route("/{section}/panier", name="frontend_cart_") |
|
|
|
|
|
*/ |
|
|
class CartController extends AbstractController |
|
|
class CartController extends AbstractController |
|
|
{ |
|
|
{ |
|
|
protected ProductFamilyInterface $productFamily; |
|
|
protected ProductFamilyInterface $productFamily; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @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 |
|
|
public function deleteReductionCart(Request $request): RedirectResponse |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @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 |
|
|
public function addReductionCredit(Request $request): RedirectResponse |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @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 |
|
|
public function deleteReductionCredit(Request $request): RedirectResponse |
|
|
{ |
|
|
{ |