Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
shouldRedirectToCheckout example
'sEsd' =>
Shopware
(
)
->
Modules
(
)
->
Basket
(
)
->
sCheckForESD
(
)
,
'showNoAccount' =>
$this
->
Request
(
)
->
getParam
(
'showNoAccount', false
)
,
'accountMode' =>
$this
->
Request
(
)
->
getParam
(
'skipLogin'
)
,
]
)
;
if
(
$this
->
shouldRedirectToAccount
(
)
)
{
$this
->
forward
(
'index', 'account'
)
;
return
;
}
if
(
$this
->
shouldRedirectToCheckout
(
)
)
{
$this
->
forward
(
'confirm', 'checkout'
)
;
return
;
}
if
(
$this
->
shouldRedirectToTarget
(
)
)
{
$this
->
redirect
(
[
'controller' =>
$sTarget
, 'action' =>
$sTargetAction
]
)
;
return
;
}