I need to add a currency suffix to url links for the products.
For example: When switching currency to CAD or USD in ANY Magento store. There is NO code in the URL links which states the currency.
www.example.com/pencils.html
I need is this: When switching currency to USD
link should look like:
www.example.com/pencils.html?currency=usd
When switching currency to CAD
link should look like:
www.example.com/pencils.html?currency=cad
Best Answer
I have found the solution.... which default magento currency change url Copy app>code>Core>Mage>Directory>Helper>Url.php
to app>local>Core>Mage>Directory>Helper>Url.php
and change the code of function
Then goto copy
app/code/core/Mage/Core/Model/Url.php
to
app/code/local/Mage/Core/Model/Url.php
function
setRouteParams
add below codebefore code
unset($data['_store_to_url']);
Modify function setRouteParamsLet me know ,if you have any issue.