Jump to content

Wrong product price in product-page when using combination [1.6.1.6]


Recommended Posts

Hi,

I have newly installed a fresh PrestaShop 1.6.1.6 and I am facing a weird problem with pricing different combinations of product. The default combination is having the right price, but when choosing one of the other combination the price increases much more than expected.

This is only happening on the product-page. The catalog-page and the basket show the right price.

 

Thanks in advance.

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

I had the same kind of issue. I solved it like this:

Go to controllers/front/ ProductController.php

Change 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!

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...