bluehat09 Posted December 5, 2010 Share Posted December 5, 2010 Hello everybody,I have a problem with showing the taxes in USD.The marchand is located in Canada and can't display taxes in USD. How this happen?1. Add to cart (default shop currency is CAD)2. Client change currency to USD and make an order3. Everywhere (order details, PDF, etc.) the taxes are displayed in USD (which is against the law)I'm thinking that the only way to avoid this and have enabled the USD curency for US customers is to force the cart to update to CAD if the customer address is in Canada, just before the client place the order.Do you have any idea how can I force the Canadian clients to have the cart in CAD?Many thanks in advance for any idea or help.Cheers! Link to comment Share on other sites More sharing options...
rocky Posted December 6, 2010 Share Posted December 6, 2010 This topic might help. You could use code like the following at the top of the displayPayment() function:$address = new Address(intval($cart->id_address_delivery)); if ($address->id_country == 4) $cookie->id_currency = 2; Link to comment Share on other sites More sharing options...
bluehat09 Posted December 6, 2010 Author Share Posted December 6, 2010 Thanks a lot rocky! That works!If I put it only on displayPayment(), it's not working because is the last step of the order and the ajax cart is not updating. Still show the USD (I need to refresh the page).That worked if I added inside the displayAddress() function too. Link to comment Share on other sites More sharing options...
mouse1 Posted October 29, 2014 Share Posted October 29, 2014 (edited) Hi everyone. I would also like to force currency based on country selected in the cart. E.g. default currency is CZK and default country is Czech Republic. If a German customer selects Germany in the address in the cart, I want the currency to switch automatically to EUR. I'm using One Page Checkout module. Would you guys have any solution to this for 1.5.4.0? Thank you very much. EDIT: I would like the whole shop to switch automatically. Edited October 29, 2014 by mouse1 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now