The getSwitchCurrencyUrl() method creates a link like this:


Where can I find the currency switch code which is called when I open the link?


The function getSwitchCurrencyUrl() is exit at app/code/core/Mage/Directory/Block/Currency.php

And Mage_Directory_Helper_Url class functiona getSwitchCurrencyUrl() give currency change url.

  • sorry, it was a missunderstanding. I did not ask where the getSwitchCurrencyUrl() is located, I need to find the code where the new currency will be set when the URL is called.
    – Artisan72
    Mar 4 '15 at 17:23
  • Can you check at app/code/core/Directory/controllers/CurrencyController.. SwitchAction
    – Amit Bera
    Mar 4 '15 at 17:31
  • Thank you, that's it: app/code/core/Mage/Directory/controllers/CurrencyController.php
    – Artisan72
    Mar 4 '15 at 17:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.