Jump to content

Error in calculating product price in product page


Recommended Posts

Hello.

 

The price of the product is wrong when we select more than one combination. On the product page the price is wrong, but not in the cart.

We are using the version of Prestashop 1.6.1.11 with a child theme from default bootstrap prestashop theme.

 

We have made several tests, changing the default theme, deactivating the price with VAT included, regenerating the combinations again, etc. But nothing works.

 

I attach a couple of screenshots indicating the combinations selected and the price difference.

 

Here is a example: https://bkfit.com/tienda/268-maillot-entretiempo-wild-wolf-manga-larga-verde-oscuro.html

Does anyone have this problem? Could someone help us please?

 

Thanks.

post-447161-0-46173100-1485894553_thumb.png

post-447161-0-46496100-1485894567_thumb.png

Edited by rramos-acuabit (see edit history)
Link to comment
Share on other sites

Hi NemoPS

 

Yes, the discount is assigned for all customers, all customer groups, all currencies and all combinations as the fixed amount (impact on price).

 

I attached a screenshot of the article.

 

Is there a patch or any solution for this problem ?? It's very serious, customer are watching two different prices

post-447161-0-41099300-1485966830_thumb.png

Edited by rramos-acuabit (see edit history)
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...