Jump to content

Product price in product detail page different to popup cart

Neil Trinh

Recommended Posts


I've found a problem on Prestashop default


A product has some combinations impact on price - (Price2.png)


And a customer group (Discount 50%) - (Price3.png)


You can see the problem on the product detail page and popup cart (both checkout page) - (Price4.png, Price5.png)



Anyone has the same problem?


Sorry for my bad English :) 






Link to comment
Share on other sites

Indeed, the group discount is not applied to combination price impact on product page.

Here is a ProductController fix proposal: https://github.com/PrestaShop/PrestaShop/pull/5691


Alternatively you can fix it in the theme:

/themes/default-bootstrap/js/product.js (lines 682 and 683 in PS, replace:

basePriceWithoutTax = basePriceWithoutTax + +combination.price;
basePriceWithTax = basePriceWithTax + +combination.price * (taxRate/100 + 1);


basePriceWithoutTax = basePriceWithoutTax + (+combination.price)*(1 - groupReduction);
basePriceWithTax = basePriceWithTax + (+combination.price)*(1 - groupReduction)*(taxRate/100 + 1);


  • Like 2
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...