Prestashop: Discount badge is missing on products with attribute

Created on 7 Sep 2019  路  6Comments  路  Source: PrestaShop/PrestaShop

Describe the bug
Discount label is missing on products with attributes.

To Reproduce
Steps to reproduce the behavior:

  1. BO -> Add product with attributes. Add discounts for eg. 10 pcs.
  2. FO -> Add 5 products per attribute. Lets say you have 3 attributes, then you should have 15 products in cart. As the discount is for 10+ products you get discount on all 15 products. But the label with discount is missing.
  3. The label only show if you add all product in same attribute.

This is a regression from Prestashop v. 1.6.1.x

Screenshots
Please see this video: https://reker.dk/badge.webm

Additional information
PrestaShop version: 1.7.6.1
PHP version: 7.2

1.7.5.2 1.7.6.1 Back-end Bug Combinations Discounts FO Minor Products To Do good first issue

All 6 comments

Hi @MathiasReker,

Thanks for your report.
Yes, with PS1.6.1.24, if the quantity of products with different combinations is > = From (quantity) condition => the discount is applied correctly in the FO.
ps1.6 => BO
image
PS1.6 => FO
image
PS: this condition is used if the "Quantity discounts based on Products" only.
With PS1.7 we don't have the same behavior.
The label discount is not displayed. => NOK.
I鈥檒l add this to the debug roadmap so that it鈥檚 fixed. If you have already fixed it on your end or if you think you can do it, please do send us a pull request!
Thanks!

Thanks. The discount is already applied to the price so the discount label should be applied too. :)

@MathiasReker, thanks!
I added this issue to our bug roadmap.

Thanks!

@NeOMakinG is this something you would be able to do ?

I'll take a look, assigned to myself

After a lot of research

/Users/vSzczupak/Sites/prestashop/themes/_core/js/cart.js

Line 54 : $('.cart-overview').replaceWith(resp.cart_detailed);

resp.cart_detailed is not updated with new discounts when changing value, tried to see more in backend side but can't find how to do this, it's a backend issue...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PrestaShark picture PrestaShark  路  3Comments

zuk3975 picture zuk3975  路  3Comments

matks picture matks  路  3Comments

sandra2n picture sandra2n  路  3Comments

Fabuloops picture Fabuloops  路  3Comments