PrestaShop / hummingbird

77 stars 73 forks source link

Product page - Product price with a volume discount is incorrect until I add the product to my cart #616

Closed florine2623 closed 1 month ago

florine2623 commented 4 months ago

Describe the bug and add attachments

When I have a volume discount, the price of the product is not updated when a reach a certain voulme. I have to add the products to my cart to see the discount.

With hummingbird :x:

https://github.com/PrestaShop/hummingbird/assets/16019289/290a0e81-a1cd-4e1e-8491-7a50b02bf3a0

With classic ✅

https://github.com/PrestaShop/hummingbird/assets/16019289/66f51d9c-6b18-4a72-872f-162525b0bd6c

Expected behavior

The product price should be updated when i reach the quantity of the volume discount like it used to work on classic theme.

Steps to reproduce

  1. Edit a product > Go to Pricing Tab > Add specific price
  2. Set the "Minimum number of units purchased"
  3. Enable "Apply a discount to the initial price"
  4. Set to 2€ Tax included
  5. Click on save and publish
  6. Preview the product
  7. Increase quantity to 3
  8. See the price is not updated :x:

PrestaShop version(s) where the bug happened

9.0.0

PHP version(s) where the bug happened

8.1