Describe the bug and add attachments
The module has faulty logic to show the prompt for watchdog. It allows you to set notification and receive them even for products that are in stock. See steps to reproduce.
Expected behavior
Product must take the real stock, without the cart quantity subtracted, to work properly.
Steps to reproduce
- Allow product stock notifications in this module, in it's settings.
- Create product - 3 pieces in stock, OOSP disabled.
- Go to FO to this product, see that you can buy 3 pieces.
- Add 3 pieces to cart, refresh the page.
- See that you can add a notification. For a product that is in stock.🔴
- Do it.
- Another customer buys it = simulate it by changing stock of this product ot 2 in the backoffice.
- You receive an email that the product is back in stock. For a product that is in stock. 🔴
PrestaShop version(s) where the bug happened
Not relevant
cc @tblivet