anabrolic Posted March 5, 2009 Share Posted March 5, 2009 I would like to be able to change the currency after login, depending on the customer s country. The default currency is set to USD but i would like when a customer from France logs in, to automatically change the currency to EUR. I found something and it works but someone said it s not a good idea... what do you think? I don t want to manually add all the countries of Europe in the code below. (in login.php) if($check_country['entry_country_id'] == 34) { $currency = 'EUR'; } elseif($check_country['entry_country_id'] == etc.) { $currency = 'etc.'; Link to comment Share on other sites More sharing options...
theherbman Posted March 11, 2009 Share Posted March 11, 2009 Hi Why don't you just put all the currences you want in the currency dropdown box and let the customer decide which they want to use. Mel Link to comment Share on other sites More sharing options...
theherbman Posted March 11, 2009 Share Posted March 11, 2009 Hi Why don't you just put all the currences you want in the currency dropdown box and let the customer decide which they want to use. Mel Link to comment Share on other sites More sharing options...
Jack_mcs Posted March 11, 2009 Share Posted March 11, 2009 I agree with Mel. What happens if you have an American living in France? He may not want his currency forced to non-US. Also, the check you mentioned would require a login and that might cause confusion for the customer. You may want to look at the Second Currency contribution (see My Addons). It will allow your customer to show two currencies. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
anabrolic Posted March 15, 2009 Author Share Posted March 15, 2009 the problem is that the majority of my clients from Europe forget to change the currency to EURO so i always have to mail them the price Link to comment Share on other sites More sharing options...
Jack_mcs Posted March 16, 2009 Share Posted March 16, 2009 The Second Currency contribution will help a little with that since it will display both currencies, even in the order confirmation email. It won't force them to change currencies though. The first method you mentioned, or something similar, would work but I'm afraid it would create more problems since it is controlling the customers settings. I could be wrong though so you could try it. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.