Public Member Functions | |
switchAction () |
Definition at line 34 of file CurrencyController.php.
switchAction | ( | ) |
Definition at line 36 of file CurrencyController.php.
00037 { 00038 if ($curency = (string) $this->getRequest()->getParam('currency')) { 00039 Mage::app()->getStore()->setCurrentCurrencyCode($curency); 00040 } 00041 if (Mage::getSingleton('checkout/session')->getQuote()) { 00042 Mage::getSingleton('checkout/session')->getQuote() 00043 ->collectTotals() 00044 ->save(); 00045 } 00046 $this->_redirectReferer(Mage::getBaseUrl()); 00047 }