AlexLLL Posted December 21, 2017 Share Posted December 21, 2017 Hi all! My website uses two curenncies. How can I force not default currecy for my visitors? I have USD (default) and UAH. I want to use only UAH for frontend. Thanks in advance! Link to comment Share on other sites More sharing options...
AlexLLL Posted December 21, 2017 Author Share Posted December 21, 2017 Here is what I found http://prntscr.com/hqdjcr But it's not working Link to comment Share on other sites More sharing options...
DataKick Posted December 22, 2017 Share Posted December 22, 2017 wrong file edit file /classes/Tools.php - find function setCurrency, and change line 615 from if (!Validate::isLoadedObject($currency) || (bool)$currency->deleted || !(bool)$currency->active) { $currency = Currency::getCurrencyInstance(Configuration::get('PS_CURRENCY_DEFAULT')); } to if (!Validate::isLoadedObject($currency) || (bool)$currency->deleted || !(bool)$currency->active) { $currency = Currency::getCurrencyInstance(6); } 1 Link to comment Share on other sites More sharing options...
AlexLLL Posted December 22, 2017 Author Share Posted December 22, 2017 It's working. A million thanks! 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