Guest Posted November 15, 2007 Share Posted November 15, 2007 Does anyone know if there is a contribution that will detect the visitor's country and will then automatically display prices in that country's currency? Looking to simplify here... fewer clicks to get to the purchase... Thanks in advance! ~Roq Quote Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted November 15, 2007 Share Posted November 15, 2007 Try searching for default country in contributions. The code there would be a good place to start. Quote Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
Guest Posted November 16, 2007 Share Posted November 16, 2007 Ya, thats what I thought too. Combed through everything that I could think of that might even get me close to the info that I want but so far am totally empty handed. Anyone else know of a contribution that will show prices based on the visitors country? Quote Link to comment Share on other sites More sharing options...
Guest Posted November 17, 2007 Share Posted November 17, 2007 Still looking for this. Thoughts? Quote Link to comment Share on other sites More sharing options...
Guest Posted November 17, 2007 Share Posted November 17, 2007 Still looking for this. Thoughts? Probably not. Quote Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted November 17, 2007 Share Posted November 17, 2007 Sorry, my first suggestion didn't get you any further forward. I can't see a db table that links country to currency. Country to address format - yes (funny how the default is all set to 1). Looks like a contribution. Sql to add extra field to country and populate it. Admin funtion to allow it to be maintained. Admin funtion to allow it to be maintained. Sql to add default currency in admin area if country not found or none set. Auto switch currency when someone logs on depending on invoice address country. The order table has currency on it so don't belive any moe mod ould be required. Quote Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
Jack_mcs Posted November 17, 2007 Share Posted November 17, 2007 Does anyone know if there is a contribution that will detect the visitor's country and will then automatically display prices in that country's currency? Looking to simplify here... fewer clicks to get to the purchase... Thanks in advance! ~Roq THe code already detects the visitors language, as set on the visitors computer. This is not the same as determining the country but may be an close approximation. There is also a php variable named $_SERVER["HTTP_ACCEPT_LANGUAGE"] that may do it to, though I'm not sure of the accuracy. Other than that, you would have have to look up the IP, which would most likely slow the site down considerably. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
jacopo Posted November 25, 2007 Share Posted November 25, 2007 Hi Roq, I am trying to do the same here. I am not expert of IP geolocation. if you cant find how to gelocate the user, then i can write the code around it. deal? jacopo Quote Expresionario.com | Pura Sub-cultura! Link to comment Share on other sites More sharing options...
jacopo Posted November 25, 2007 Share Posted November 25, 2007 if you cant find how to gelocate the user, then i can write the code around it. perhaps we can use this: http://phpclasses.dev.skypp.com/browse/package/3813.html which is based on http://www.hostip.info/ webservice my idea is: if the user has manually selected the currency, > we should store it to a SESSION variable and use it always if the user hasnt manually choose any currency (yet) > we change currency according to geolocation anytime the language is changed (manually or browser_location) this currency is valid only until the user changes currency manually once. i will be able to work on it only next week, see if you can be faster. jac Quote Expresionario.com | Pura Sub-cultura! Link to comment Share on other sites More sharing options...
iyah Posted December 9, 2009 Share Posted December 9, 2009 Does anyone know if there is a contribution that will detect the visitor's country and will then automatically display prices in that country's currency? Looking to simplify here... fewer clicks to get to the purchase... Thanks in advance! ~Roq Has anyone been able to locate or create a contribution for this? Thanks, Sophie Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.