2

The getSwitchCurrencyUrl() method creates a link like this:

http://myshop//directory/currency/switch/currency/USD/uenc/aHR0cDovL...

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

1 Answer 1

0

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.

3
  • 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, 2015 at 17:23
  • Can you check at app/code/core/Directory/controllers/CurrencyController.. SwitchAction
    – Amit Bera
    Mar 4, 2015 at 17:31
  • Thank you, that's it: app/code/core/Mage/Directory/controllers/CurrencyController.php
    – Artisan72
    Mar 4, 2015 at 17:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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