• Resolved jen000

    (@jen000)


    Hi my client has a problem with her store. This is a busy time of year for her store and she is losing orders. If an item has 5 in stock and someone tries to buy 5 they get an error message on the checkout page. The error says “Sorry we do not have enough (name of product) in stock to fulfull your order (0 available)”. But the item is in stock. It only happens when someone is going to buy the entire stock. So a custom order (quantity of 1) also triggered the same issue when the customer tried to buy it.

    She is using Astra theme and we’ve updated all the plugins and themes. Debug log is not showing any issue. We’ve run anti-malware too. It isn’t happening for all customers.

    Please can anyone help?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter jen000

    (@jen000)

    Just to update my message, we’ve tried deactivating the plugins. There is no woocommerce fatal error log. The debug error log has caught one error which says,

    “woocommerce_blocks_checkout_order_processed is deprecated since version 7.2.0! Use woocommerce_store_api_checkout_order_processed instead.”

    We are using woocommerce 8.3.1

    Thread Starter jen000

    (@jen000)

    Update: my client has worked out that if she add the option to place backorders then the problem disappears! But she does NOT want to offer back orders. Can anyone offer any suggestions please?

    Thread Starter jen000

    (@jen000)

    Is there anywhere else I can try to get some support please? I feel like I’m talking to myself here!

    Hi @jen000

    Thanks for reaching out!

    If an item has 5 in stock and someone tries to buy 5 they get an error message on the checkout page. The error says “Sorry we do not have enough (name of product) in stock to fulfull your order (0 available)”. But the item is in stock. It only happens when someone is going to buy the entire stock. So a custom order (quantity of 1) also triggered the same issue when the customer tried to buy it.

    I replicated the scenario on my personal site, however, I am unable to reproduce the issue as you can see below:

    It looks like a third-party plugin or your theme might be causing the conflict here.

    For us to investigate this further, can you please try to switch to the default Storefront theme and only WooCommerce plugin is enabled, create a test order and see if this works?

    If so, then this kind of problem is usually caused by your theme or a third-party plugin present on your site. We can run a conflict test to verify this. I’d recommend cloning your site to a staging environment and performing the tests described on this guide without modifying your live site or impacting customers. Many hosts provide staging facilities, so it’s worth checking in with them. It’s also possible to do it using the free WP Staging plugin.

    If this was caused by a third-party plugin present on your site, it would be best to reach out to the developers for further assistance here.

    If this did not resolve the issue, please share your System Status Report, that will help us further troubleshoot.

    You can find it via WooCommerce > Status. Select Get system report and then Copy for support. Once you’ve done that, you can paste it into your reply here.

    If you could also provide the fatal error logs (if any) under WooCommerce > Status > Logs.

    You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.

    Or, if you’d like someone else to do this work for you, our trusted partner, Codeable, has an offering where they will run this test for $150 USD. If there is time left, they will also fix the problems they found.

    Let us know how it goes!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Customers get error message when they try to buy all stock’ is closed to new replies.