• Resolved vhfilgueiras


    Hi there guys!

    Have you experienced a problem that even though you have 1 or 2 units of a SIMPLE product in stock, when you go to the cart page or try to finalize the purchase, does a message appear stating that the product is out of stock?

    In the case of this example the message is saying that there are -8 products in stock, I need to add more than 8 in order to the customer can buy it. I already checked the database and it is correct there, 1 product in stock.

    The images, the product in stock:

    View post on imgur.com

    The message saying it is out of stock:

    View post on imgur.com

    Please, do you have any idea what can cause that? Which log should I look to provide you more info?

    Thanks so much,
    Victor Filgueiras

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Hannah S.L.


    Automattic Happiness Engineer

    Hey there Victor,

    I haven’t heard of this specific problem before, but it sounds like it’s related to hold stock issues. That’s when a product is added to the cart, and the stock is locked for a certain period so that it can’t be purchased by someone else.

    I recommend going to <b>WooCommerce > Settings > Products > Inventory** and setting hold stock to 0. That’ll stop the stock from being held at all.

    As for tracking why the inventory is changing on your site, I don’t know of a way to do this. If it contintues to happen, I recommend the following:

    1. Set up a staging site using a tool from your host or the WP Staging plugin: https://wordpress.org/plugins/wp-staging/
    2. Make sure the inventory problem is happening on the staging site
    3. Disable all plugins except for WooCommerce and then check to see if the same problem is happening. If it doesn’t happen any longer, then re-enable plugins until you find out which one is causing the problem.

    Thread Starter vhfilgueiras



    Thank you for the reply!

    If the option of hold stock is the one marked in the printscreen below, it is already empty (disabled)

    View post on imgur.com

    My suspicion is that it was caused by a plugin called Jilt (https://jilt.com/), it recovers abandoned carts, but it is a widely used plugin and I havent seen any post regarding this issue so… my ‘temporary solution’ is to create a product from the scratch and tell my customers to warn me by mail or whatsapp the products that are still affected to it. The problem is that I already disabled this plugin but some products still have this negative stock, even if I change manually the stock quantity in the product page.

    Just to add a voice to this; we’re having the same issue on a client’s site and do not have the Jilt plugin mentioned above installed. Hold Stock is disabled on this site as well.

    Just to make sure re:Hold Stock, I enabled it, saved, disabled it, saved, and checked – same issue.

    Given that this client’s store has a number of single-stock items, it’s a really large issue at this point.

    Moving on to further testing with a development site / disabling plugins, but wanted to note that it’s not an isolated incident with @vhfilgueiras’s site

    • This reply was modified 5 years, 8 months ago by websavers.

    Confirming this issue still exists with all plugins disabled except WooCommerce.

    Thread Starter vhfilgueiras



    Yep, just did the test as well. All plugins deactivated except Woo, same result, still saying the product is out of stock (-8 products in the message alert but with 2 manual setted up in the product page) with hold stock disabled, CloudFlare in dev mode.

    By the way, adding my host for further investagation, siteground.

    • This reply was modified 5 years, 8 months ago by vhfilgueiras.
    • This reply was modified 5 years, 8 months ago by vhfilgueiras.

    @vhfilgueiras do you have any “Pending Payment” orders with those products? That’s what I’m finding on my end..

    Thread Starter vhfilgueiras


    @websavers yes, I do have more than 200 pending payment orders but this should not be an issue, am I wrong?

    @vhfilgueiras You’re right – it *shouldn’t* be an issue. It is, however, the issue we’re having. In my testing, removing or cancelling these orders has released the stock and the cart functions properly again.

    @fernashes – pending payment orders are holding stock despite hold stock being disabled.

    Also, more details on this can be found on this WooCommerce GitHub issue: https://github.com/woocommerce/woocommerce/issues/21772

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Not variable product showing as out of stock’ is closed to new replies.