sindbad Posted October 5, 2009 Share Posted October 5, 2009 Hi,I have a question regarding my new online store: is there any possibility to set up two different currencies, for the front end US Dollars and for the back end Euros? I need to do that because I buy the products in Euros and I sell them only in US Dollars, so for the front end I need to show only US Dollar.Thank you. Link to comment Share on other sites More sharing options...
Patric Posted October 5, 2009 Share Posted October 5, 2009 You can't configure different currencies in FO and BO.If you only need 1 currency in the FO, a solution may be to activate both currencies, disable the currency selector in the FO and choose the FO currency as the default one. So only this currency will be used in the FO. Link to comment Share on other sites More sharing options...
sindbad Posted October 6, 2009 Author Share Posted October 6, 2009 OK,thanks for reply. It was nice to have this possibility of choosing because if the currency ratio is changing..... it takes time to update the prices for 200 products. Link to comment Share on other sites More sharing options...
Patric Posted October 6, 2009 Share Posted October 6, 2009 Can't you only edit the change ratio ? Back Office >> Payment >> Currencies Link to comment Share on other sites More sharing options...
ningu Posted October 6, 2009 Share Posted October 6, 2009 One way can be to hack the Tools::setCurrency() method.It seems this method compute the current currency to display in FO not used in BO.So, in file classes/Tools.php, in method setCurrency(), replace $currency = new Currency(intval(Configuration::get('PS_CURRENCY_DEFAULT'))); by $currency = new Currency(2); 2 for Dollar, 1 for EuroKeep the DEFAULT_CURRENCY for the currency in which you buy your productSet the FO currency by the setCurrency methodYou have to remove the cookie to have it working.I've just tested the FO display.You need to test the full sequence 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