CodeExplorer shouldRedirectToAccount example
$sTarget =
$this->
Request()->
getParam('sTarget', 'account'
);
$sTargetAction =
$this->
Request()->
getParam('sTargetAction', 'index'
);
$this->
View()->
assign([ 'sTarget' =>
$sTarget,
'sTargetAction' =>
$sTargetAction,
'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;
}