/**
* Add voucher to cart
*
* At failure view variable sVoucherError will give further information
* At success return to cart / confirm view
*
* @return void
*/
public function addVoucherAction() { if ($this->
Request()->
isPost()) { $voucher =
$this->basket->
sAddVoucher($this->
Request()->
getParam('sVoucher'
));
if (!
empty($voucher['sErrorMessages'
])) { $this->
View()->
assign('sVoucherError',
$voucher['sErrorMessages'
]);
} } $this->
forward($this->
Request()->
getParam('sTargetAction', 'index'
));
} /**
* Add premium / bonus product to cart
*
* request param "sAddPremium" - ordernumber of bonus product (defined in s_articles_premiums)
* Return to cart / confirm page on success
*
* @return void
*/