Stock quantity and pending payment behaviour
-
Hello community!
I will present a case I am having in my Woocommerce store. It is not an issue itself, but it is some behaviour I need to change.
When a client, let’s say “Client A” makes a purchase but doesn’t pay, the order remains in “Pending Payment” status. This status holds the stock but doesn’t reduce it. Leading some cases where the stock available is not the real stock and affecting the user experience.
for example:
We have 10 units of “Product A” and the “Client A” order 5 units of that product and doesn’t pay.Then “Client B” see that “Product A” has 10 units in stock and adds 6 units or more to the cart. When goes to cart page a validation message appears and it says there are only 5 units in stock of “Product A”. This happens because the “Pending payment” order of Client A is holding 5 units in stock. 10 – 5 = 5.
I think of two solutions for this matter:
1) Changing the behaviour of pending payment status so it reduces the stock instead of “holding it”.
2) Changing the quantity stock number so it shows the actual stock minus the holding stock from Pending payment orders.As far as I know this is a default behaviour of Woocommerce. What do you think I should do and how?
Thank you in advance.
The page I need help with: [log in to see the link]
- The topic ‘Stock quantity and pending payment behaviour’ is closed to new replies.