Jump to content

Wrong product price on product page with combinations and group reduction


Recommended Posts

Hi,

 

I'm facing an issue with product price appearing correctly on category page but when opening product 'Quick View' or product page, item base price shows (which is wrong) instead of group discount price!  the weird thing is that when i add item to cart, it adds it using correct price!

 

you can see sample problematic case with first item on: http://kolani.ca/153-riobel

 

also note that this item also has combinations! other items without combinations are fine on quick view and product page! (example very last item of same category on: http://kolani.ca/153-riobel#/page-84)

 

this case is simple where there's only single currency, and customer group is visitors.  i'm also sharing screenshots showing setup is correct and no issues. you may see it at: https://onedrive.live.com/redir?resid=9C63640645E58803!10704&authkey=!AIqrwoJDEitrQM8&v=3&ithint=photo%2cpng

 

how do i fix showing correct group discount price on product page and quick view for products with combinations?

 

thanks in advance for any input.

 

Thank you.

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...
  • 1 year later...

This is working for prestashop 1.6.1.x

 

It will correct the price from product page if group discount applies and product has combination.

 

Modify from themes the product.js

 

find around line 680

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

and replace with

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

and few lines bellow find

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

and replace with

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

It worked for me.

 

Regards

Jon

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