• Resolved admirvirtua

    (@admirvirtua)


    Hello,

    I am working on a system that will be automatically syncing stocks on products, from customers XML files. I am doing this using REST API.

    My question is, if there is a pending order (be it on-hold, or waiting payment, or any other status but complete or failed), is product stock reserved?
    So let’s says that the current stock is 2, someone orders that product, but it is still not complete, does this mean that other people wanting to order can buy only 1 item, or are both items still available?
    And connected with this, is the product stock on the backend still visible as 2? So if let’s say if the syncing process starts and sets the stock to 1, the product should not be available any more. Must I implement this by hand to remove that 1 pending item from the whole stock? (This is how I currently have it set up, but it makes the syncing process really slow)

    Hopefully the questions are understandable. And any help would be appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Phil

    (@fullysupportedphil)

    Automattic Happiness Engineer

    My question is, if there is a pending order (be it on-hold, or waiting payment, or any other status but complete or failed), is product stock reserved?

    Yes. You can reduce the “Hold-Stock” time for how long WooCommerce waits to cancel those orders under the WooCommerce > Settings > Product > Inventory tab.

    And connected with this, is the product stock on the backend still visible as 2? So if let’s say if the syncing process starts and sets the stock to 1, the product should not be available any more.

    The inventory levels shown on the back-end will match the front-end. If a product has been removed from inventory by a customers pending order, that would impact both the admin view when you edit the product, as well as your shop.

    I hope that helps!

    Also if you come across any questions directly related to your code and customization, I would recommend joining the WooCommerce Developer Slack or Advanced WooCommerce Facebook group. As those communities are both frequented by developers (including our own).

    Thread Starter admirvirtua

    (@admirvirtua)

    Thank you for your reply.

    Yes that answer helps me a lot. I will also check those two communities.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Question about stock syncing’ is closed to new replies.