Neil Trinh Posted June 4, 2016 Share Posted June 4, 2016 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 Link to comment Share on other sites More sharing options...
erouvier29 Posted June 4, 2016 Share Posted June 4, 2016 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); 2 Link to comment Share on other sites More sharing options...
gruppopegaso Posted June 4, 2016 Share Posted June 4, 2016 I love you. On Forge this issue is unresolved... 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now