private readonly SystemConfigService
$systemConfigService,
private readonly OrderService
$orderService ) { } #[Route(path: '/account/order', name: 'frontend.account.order.page', options: ['seo' => false], defaults: ['XmlHttpRequest' => true, '_loginRequired' => true, '_loginRequiredAllowGuest' => true, '_noStore' => true], methods: ['GET', 'POST'])]
#[Route(path: '/account/order', name: 'frontend.account.order.page', options: ['seo' => false], defaults: ['XmlHttpRequest' => true, '_noStore' => true], methods: ['GET', 'POST'])]
public function orderOverview(Request
$request, SalesChannelContext
$context): Response
{ $page =
$this->orderPageLoader->
load($request,
$context);
$this->
hook(new AccountOrderPageLoadedHook($page,
$context));
return $this->
renderStorefront('@Storefront/storefront/page/account/order-history/index.html.twig',
['page' =>
$page]);
} #[Route(path: '/account/order/cancel', name: 'frontend.account.order.cancel', methods: ['POST'])]
public function cancelOrder(Request
$request, SalesChannelContext
$context): Response
{ $cancelOrderRequest =
new Request();
$cancelOrderRequest->request->
set('orderId',
$request->
get('orderId'
));
$cancelOrderRequest->request->
set('transition', 'cancel'
);