Describe the bug and add screenshots
As the remaining quantity in stock is not checked when paying with PayPal or other forms that require a gateway payment, it is possible to complete the order and pay for an out-of-stock product even if this is not permitted.
I attach a video of the problem
01 - screen-capture.webm.webm
02 - screen-capture.webm.webm
The problem also occurs when paying using the payment buttons in the cart and on the product page.
Expected behavior
Payment should not be allowed
Steps to reproduce
- Set a product quantity to 2 in the BO
- Add this product to cart, 2 units
- Go to the last step of the checkout (payment), just before you click "Confirm with an obligation to pay"
- Now, change quantity of the product to 1 in back-office
- Click "Confirm with an obligation to pay" on last step of the checkout (payment), però selezionando il pagamento con PayPal
- You are now able to pay while you shouldn't
PrestaShop version(s) where the bug happened
8.0
PHP version(s) where the bug happened
all
Describe the bug and add screenshots
As the remaining quantity in stock is not checked when paying with PayPal or other forms that require a gateway payment, it is possible to complete the order and pay for an out-of-stock product even if this is not permitted.
I attach a video of the problem
01 - screen-capture.webm.webm
02 - screen-capture.webm.webm
The problem also occurs when paying using the payment buttons in the cart and on the product page.
Expected behavior
Payment should not be allowed
Steps to reproduce
PrestaShop version(s) where the bug happened
8.0
PHP version(s) where the bug happened
all