if ($this->
Request()->
isPost()) { if (!
$this->
Request()->
getParam('sAddPremium'
)) { $this->session->
offsetSet( 'sErrorMessages',
$this->container->
get('snippets'
)->
getNamespace('frontend'
)->
get( 'CheckoutSelectPremiumVariant',
'Please select an option to place the required premium to the cart'
) );
} else { $this->front->
ensureRequest()->
setQuery('sAddPremium',
$this->
Request()->
getParam('sAddPremium'
));
$this->basket->
sInsertPremium();
} } $this->
redirect([ 'controller' =>
$this->
Request()->
getParam('sTarget', 'checkout'
),
'action' =>
$this->
Request()->
getParam('sTargetAction', 'index'
),
]);
} /**
* On any change on country, payment or dispatch recalculate shipping costs
* and forward to cart / confirm view
*
* @return void
*/