Plika1988 Posted July 10, 2018 Share Posted July 10, 2018 (edited) Hey all, I'm having a problem with a wrong price displaying on a product page. The price that is wrong has a price reduction in the combination settings. When I put the product in the cart it does show the correct price and also in the category list the price is correct. I've seen that other people have had a similar problem and I have tried alot of different 'solutions and fixes' but nothing is working for me. Is there anybody that knows how to solve this problem. It is greatly appreciated. EDIT: I've solved the issue. In a previous version of prestashop (1.6.0.14) I had used combinations with a price impact. The price was shown correctly on the product page in this version. So I uploaded certain (old 1.6.0.14) files i thought the error could be in, to see if the price would show correctly, and it did! The error is in controllers/front/ ProductController.php Change Line 462 from this: $combinations[$row['id_product_attribute']]['price'] = (float)($row['price'], null, Context::getContext()->currency, false); To this: $combinations[$row['id_product_attribute']]['price'] = (float)$row['price']; This fixed my problem anyways. Hope it helps people out! Edited July 13, 2018 by Plika1988 solved the problem (see edit history) Link to comment Share on other sites More sharing options...
demaluca Posted June 5, 2020 Share Posted June 5, 2020 Hi there, i've got your same issue but this does not help... Latest 1.6 version Any ideas? Link to comment Share on other sites More sharing options...
Behc98 Posted October 16, 2021 Share Posted October 16, 2021 i have the same problem. My code $combinations[$row['id_product_attribute']]['price'] = (float)Tools::convertPriceFull($row['price'], null, Context::getContext()->currency, false); 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