Mage_Directory_CurrencyController Class Reference

Inheritance diagram for Mage_Directory_CurrencyController:

Mage_Core_Controller_Front_Action Mage_Core_Controller_Varien_Action

List of all members.

Public Member Functions

 switchAction ()


Detailed Description

Definition at line 34 of file CurrencyController.php.


Member Function Documentation

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     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:24:07 2009 for Magento by  doxygen 1.5.8