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 magento.stackexchange.com, 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 community@magento.com.

Magento Forum

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

Guys,

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.

CODE :

<span id=ycclink style=’display:none’><a href="http://www.yourcurrencyconverter.com">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=//server2.YourCurrencyConverter.com/ConvertCurrency.ashx?id=1834ysqsb42ch2devr4531zvab45x4&spoofCountry;=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
 
brendanb
Mentor
 
Total Posts:  1093
Joined:  2008-07-16
London, United Kingdom
 

hi,

have you tried the footer.html file?

brendan

 
Magento Community Magento Community
Magento Community
Magento Community
 
adsjflkj89j
Member
 
Total Posts:  52
Joined:  2009-03-19
 

You might be able to add the code via CMS… within the product description… or maybe as an attribute…

 
Magento Community Magento Community
Magento Community
Magento Community
 
wildturkey
Member
 
Total Posts:  37
Joined:  2009-02-10
 

Thanks for the replies guys.

Inserting this into the footer via CMS menu has worked fine! smile

Cheers.

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