try { $page =
$this->orderPageLoader->
load($request,
$context);
$this->
hook(new AccountOrderPageLoadedHook($page,
$context));
} catch (GuestNotAuthenticatedException|WrongGuestCredentialsException|CustomerAuthThrottledException
$exception) { return $this->
redirectToRoute( 'frontend.account.guest.login.page',
[ 'redirectTo' => 'frontend.account.order.single.page',
'redirectParameters' =>
['deepLinkCode' =>
$request->
get('deepLinkCode'
)],
'loginError'
=> ($exception instanceof WrongGuestCredentialsException
),
'waitTime'
=> ($exception instanceof CustomerAuthThrottledException
) ?
$exception->
getWaitTime() : '',
] );
} return $this->
renderStorefront('@Storefront/storefront/page/account/order-history/index.html.twig',
['page' =>
$page]);
} #[Route(path: '/widgets/account/order/detail/{id}', name: 'widgets.account.order.detail', options: ['seo' => false], defaults: ['XmlHttpRequest' => true, '_loginRequired' => true], methods: ['GET'])]
public function ajaxOrderDetail(Request
$request, SalesChannelContext
$context): Response
{ $page =
$this->orderDetailPageLoader->
load($request,
$context);