Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
AccountOrderDetailPageLoadedEvent example
$page
= AccountOrderDetailPage::
createFrom
(
$this
->genericLoader->
load
(
$request
,
$salesChannelContext
)
)
;
$page
->
setLineItems
(
$order
->
getNestedLineItems
(
)
)
;
$page
->
setOrder
(
$order
)
;
if
(
$page
->
getMetaInformation
(
)
)
{
$page
->
getMetaInformation
(
)
->
setRobots
(
'noindex,follow'
)
;
}
$this
->eventDispatcher->
dispatch
(
new
AccountOrderDetailPageLoadedEvent
(
$page
,
$salesChannelContext
,
$request
)
)
;
return
$page
;
}
}