Jump to content

Deny orders is not working


Recommended Posts

Hi 

I have a problem related to (Orders with 0 inventory).. So i'm getting (on backorders) which allows customers to order a product of 0 inventory although I already set the (Behavior when out of stock: Deny Orders).

 

Here's the scenario when the problem occurs:

1- The product quantity is available (greater than 0).
2- A customer (John) adds the product to the basket, but not completes the payment.
3- All the quantity is sold to other customers. (now the stock is 0)
4- John returns to the basket and completes the payment.

5- I receive (On Backorder) ..

How can we fix this problem ???

Link to comment
Share on other sites

I suspect the problem is that stock is checked only when the product is added to the cart, not when the order is created.

You would need to alter the order creation part (or really the payment process), so that if a product in the cart no longer has stock, then Prestashop should warn that a product in the cart no longer is available, and you should not be able to proceed (if configured to deny), unless the product is removed.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...