*/ /** * stCurrencyFrontend actions. * * @package stCurrencyPlugin * @subpackage actions */ class stCurrencyFrontendActions extends stActions { public function initialize($context) { $ret = parent::initialize($context); stLanguage::disablePath(); return $ret; } public function executeChange() { $this->executeAddCurrency(); } /** * Funkcja zapisujaca wybrana walute */ public function executeAddCurrency() { $referer = $this->getRequest()->getReferer(); $currency = stCurrency::getInstance($this->getContext()); $currency->set($this->getRequestParameter('currency')); // disable Fast Cache for this session if currency is different that default stFastCacheController::disable(); $filters = $this->getUser()->getAttribute('filters', array(), 'soteshop/stProduct'); if (isset($filters['price'])) { unset($filters['price']); } $this->getUser()->setAttribute('filters', $filters, 'soteshop/stProduct'); $this->postExecute(); return $this->redirect($referer); } }