Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email

Magento Forum

Where would i insert this code? 
Total Posts:  37
Joined:  2009-02-10


I have some code i need to enter on all pages that relate to “pricing”. This script detects the visitors IP address and then based on that, automatically selects or adds the local currency to the prcing structure.

I have included this script in the footer section of the “CMS” however it is not working correctly.

Any help would be greatly appreciated.

I am currently using a defualt installation with the “blue” skin.


<span id=ycclink style=’display:none’><a href="">geolocation - multi currency</a></span><script language=javascript>var curdate = new Date(); var datenum= curdate.getMonth()+’-’+curdate.getDay()+’-’+curdate.getYear(); var scriptstart = ‘<SCR’+’IPT ‘; var jslink = ‘SRC=//;=XX&date;=’ + datenum; var scriptend = ‘ LANGUAGE=Javascript></SCR’+’IPT>’; var jsinclude = scriptstart+jslink+scriptend; [removed](jsinclude);</script>

Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top