Elvinas Posted October 27, 2015 Share Posted October 27, 2015 Hello everyone, I'm working on Prestashop website and I'm trying to get rid of one additional currency in product price that is still displayed no matter what. The website that I'm trying to modify I believe was modified before me because I know that Prestashop doesn't have dual price functionality by default I mean the website now shows price with two currencies and I want to leave just "EUR" whic is the default currency. I deleted all existing currencies but nothing happened. I also tried experimenting with code in template folder. I found that {convertPrice price=$product.price} code is responsible for showing prices. But I still don't understand why this line of code lists price in two different currencies even if I deleted all currencies. In database table called "ps_currency" I still can find second currency record in table and it has a flag deleted which is equal to "1". If I delete this record still prestashop is trying to show two currencies but this time second currency is shown with no conversion rate, currency symbol... Any suggestions of what I should try to do to get rid of this additional currency would be really appreciated. Here's the screenshot: http://postimg.org/image/b1xe41yyt/ Link to comment Share on other sites More sharing options...
cristic Posted October 27, 2015 Share Posted October 27, 2015 Check function displayPrice from /override/classes/Tools.php or /classes/Tools.php. If I understood you correctly, here you should have the modified code for your dual currency display. 1 Link to comment Share on other sites More sharing options...
Elvinas Posted October 29, 2015 Author Share Posted October 29, 2015 Thank you so much! That did the trick It seems that modification was made in classes/Tools.php and I replaced displayPrice method with prestashop's default code of that method. 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