PrestaShop / hummingbird

77 stars 73 forks source link

In product page - The Add to cart button is greyed out when I change quantity to 0 and back to a positive quantity #615

Closed florine2623 closed 1 month ago

florine2623 commented 4 months ago

Describe the bug and add attachments

When I change the quantity to 0, then to 1, I can't add the product to my cart. The Add to cart button is still greyed out. I need to refresh the page in order to add the product to my cart.

https://github.com/PrestaShop/hummingbird/assets/16019289/76918e81-1efd-46c0-83cb-e303408d068b

Expected behavior

When the quantity is updated to > 0, I should be able to click on it.

Steps to reproduce

  1. Go to any product page
  2. Change quantity to 0 via input
  3. Can't add product to cart
  4. Change quantity > 1
  5. Button is still unclickable :x:

PrestaShop version(s) where the bug happened

9.0.0

PHP version(s) where the bug happened

8.1