Jump to content

Product price in product detail page different to popup cart


Neil Trinh

Recommended Posts

Hi,

I've found a problem on Prestashop default 1.6.1.5.

 

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 :) 

 

post-1081079-0-32578000-1465012982_thumb.png

post-1081079-0-25644100-1465012983_thumb.png

post-1081079-0-60339000-1465012984_thumb.png

post-1081079-0-81030900-1465012985_thumb.png

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 1.6.1.5), replace:

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

with:

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...