• Resolved morganrideshorses

    (@morganrideshorses)


    Recently my client noticed a lot of abandoned carts and when we took a look it seems that when in-stock products with inventory tracking (qty 1) are added to the cart, once the user goes to checkout they get the message that there is a problem with the cart. They go back to the cart and get a message “Sorry, we do not have enough [PRODUCT] in stock to fulfill your order (0 available). We apologize for any inconvenience caused.”

    I have disabled plugins but cannot track where this issue is coming from.

    Tracking inventory is on at the Woo settings level. Products that are tracking inventory with a qty are affected. Products that do are not tracking inventory and are just “in stock” by default do not have this issue.

    I have Googled this and it seems to be an issue that pops up pretty regularly but I can see no consistent cause other than the generic “probably a plugin issue).

    NOTE: I added a quantity of 2 to the products but that did not solve the problem.

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello morganrideshorses

    Thanks for contacting WooCommerce support.

    I understand you are facing an issue where product stock quantity shows zero at the checkout even when there is 1 more product in the stock.

    To help you further, I’d like to understand more about your setup.
    Could you please send me a copy of your site’s System Status?
    You can find it via WooCommerce > Status.
    Select Get system report and then Copy for support.

    Once you’ve done that, you can paste the text in https://gist.github.com
    After that, you can paste the Gist link here in your reply.

    Looking forward to your response. ??

    Thread Starter morganrideshorses

    (@morganrideshorses)

    Thanks for that. The only way that I am able to reproduce this issue is if the product has stock held for an unpaid order. I wasn’t able to see the problem happen with this product: https://brassybit.com/shop/bits/5-25-dutton-western-d-snaffle/?v=7516fd43adaa which as near as I can tell has a stock quantity of one.


    Link to image: https://d.pr/i/swMToi

    I’d suggest you have a look through any orders in pending payment status to determine if that can account for the behavior you are experiencing. Otherwise, we’d need to know the exact steps that can be taken to reproduce this behavior under conflict troubleshooting conditions before we could pursue it any further.

    Thread Starter morganrideshorses

    (@morganrideshorses)

    I had to turn off stock management because of the issue. I’ll turn it back on and video the experience. Please stand by.

    Thread Starter morganrideshorses

    (@morganrideshorses)

    Thread Starter morganrideshorses

    (@morganrideshorses)

    I have left inventory tracking on at the WooCommerce Inventory settings level but if this can’t get resolved VERY quickly I’ll have to turn it off again since orders are not being placed because of this issue.

    Thread Starter morganrideshorses

    (@morganrideshorses)

    After trying numerous things I ended up deleting and regenerating the cart and checkout pages and that fixed the issue. I think the theme was not keeping up with WooCommerce updates. This can be closed but for the future that might be something for people to try first if they are having this same issue.

    I am having this same issue. I have checked plugins, deleted and regenerated pages, ran my status report. I had to change my qty to 2 in order for purchase of 1 to be available, but I do not find this acceptable to publish.

    I have cleared all test orders / orders, ran all WooCommerce tools, checked all settings. I went through and reestablished all inventory controls, I am at a loss. It’s as if the code is holding a quantity of 1 somewhere and I cannot find it.

    I am attaching my status report for my site.

    https://gist.github.com/kuhnshh/7d63b58ea31da4e284891890453551e5

    Thanks!

    I’m having the same issue. Variable product, stock management all seems to be set correctly. Works some times, others not. When it works, it correctly says in the logs that the stock was held for 5 minutes (which is what the global setting is set for). When it doesn’t, draft order reports get made saying the stock was held for 10 minutes (can’t find 10 minutes as a setting anywhere).

    I dont have a hold inventory setup. And when I did it still didn’t clear. Go to woocommerce – settings – inventory for your hold settings.

    We had the default hold inventory set up (60 minutes) but disabled it when we first encountered this issue. The funny thing was, it didn’t make a difference. Even with hold inventory disabled (left blank in settings per the instructions), “draft” orders are being created by some customers when they add items to their cart and in the notes on those draft orders it says the stock is being held for 10 minutes. I have NO idea where that 10 minute hold is coming from because “10 minutes” isn’t configured anywhere.

    • This reply was modified 10 months, 3 weeks ago by jonesy16.

    @jonesy16

    I had ran the conflict test last weekend, and deactivated all my plugins and reactivated one by one and issue was not resolved. After looking at all my plugins again, and just following a hunch, I deactivated my themes recommended plugin Hummingbird. I have had issues with this in the past. Once I deactivated just that one problem was resolved. I do not know why this didn’t work during my conflict test, but it worked now. If you have that plugin try deactivating it. I don’t know why themes have this as a recommended plugin. It seems like every time I activate based on theme recommendations I have issues with it. What a frustrating week this has been. Hope your issue gets resolved!

    I don’t have that one. I do have the Sydney Toolbox plugin for my Sydney theme and I disabled that this weekend. Haven’t had a chance to test it thoroughly since I basically had to delete all of my variations to work around this problem and haven’t bothered to recreate them yet. Will post back here if that fixed anything.

    I also have this same problem in a new installation.

    The information is on GitHub.

    https://github.com/woocommerce/woocommerce/issues/44231

    Hey, @yes369!

    Per WordPress forum guidelines, would you mind opening up a new thread for this so that we can keep things organized and offer more personalized support for you? We’ll be happy to help you out with this over there!

    Have a wonderful day!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Quantity in stock but then not available in checkout’ is closed to new replies.