• Resolved Tommaso99

    (@tommaso99)


    In my Woocommerce store I have a variable products with two attributes (example: color and size), and each variation has its own stock quantity.
    Some of the variations are sold out but it happened at least twice that customers were able to purchase the product, and the stock quantity in the backend was -1.
    I’m not currently running any ads campaign to the store, so not many people ordering at the same time. It’s not an issue of concurrent orders.
    Also, back ordering is disabled.
    I couldn’t replicate the issue, because the sold out variations are grayed out, and it’s not possible to purchase.

    At what exact time does Woocommerce reduce the stock quantity after an order has been placed?
    Right after is being placed or when it goes from Payment pending to Processing?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Same problem here.

    Hi @tommaso99

    At what exact time does Woocommerce reduce the stock quantity after an order has been placed?

    By default, stock is reduced when an order gets to the Processing status which also implies that payment has been received. In your case the timings of the purchases may have been very close to each other.

    For reference, kindly check the order statuses documentation here – https://docs.woocommerce.com/document/managing-orders/#order-statuses.

    I hope this helps! If you have further questions do let us know.

    Thread Starter Tommaso99

    (@tommaso99)

    Hey @margaretwporg
    Unfortunately that’s not the case because I’m not sending much traffic at the moment and the two last orders were 12 hours apart.
    I’ll do more testing in the next few days with the logistics storage plugin to see if, for some reasons, they delay the “processing” status.

    However, even in case of many people ordering at the same time, why is stock reduced when the order gets to the processing status? It makes no sense, because looking online it seems that many people have the same problem.
    Reducing the stock should happen right when the customer checks out, and only in case the transaction fails or the order is decline, the stock should be added back again.
    Am I wrong?

    Mirko P.

    (@rainfallnixfig)

    Hi @tommaso99,

    Some of the variations are sold out but it happened at least twice that customers were able to purchase the product, and the stock quantity in the backend was -1.

    This doesn’t sound right. When two or more customers place an order at the same time and you only have 1 product in stock (not allowing backorders), just one customer will be able to complete the order while all others will get an out of stock message:


    Link to image: https://snipboard.io/T6ziAr.jpg

    The reason why you’re seeing this could be that you have a plugin controlling the stock. You can confirm that by deactivating plugins one by one. Once identified, you’ll want to reach out to the plugin developer directly to report the issue.

    Thanks.

    We haven’t heard back from you in a while, so I’m going to mark this thread as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Negative stock quantity’ is closed to new replies.