• Resolved lucaferrari

    (@lucaferrari)


    Hello,

    we have a live Woocommerce website that uses stock levels for every product. Normally, everything works fine with that:

    – Stock gets reduced when the product gets bought
    – after „hold stock“ it gets increased if abandoned
    (back orders are turned off)

    But with some products the stock level and in front end shown stock level is 1, but if you want to buy it you get the error message „Sorry, we do not have enough “%1$s” in stock to fulfill your order (-1 available). We apologize for any inconvenience caused.“

    I don’t know where the number “-1” comes from.

    We tried to delete the sessions of our customers and cleared cache and transients. Nothing helped.

    Thanks for any advices

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

    (@maykato)

    Hello,

    This kind of problem is usually caused by a conflict with your theme or with another plugin. To determine what’s causing the issue, please temporarily switch your theme back to Storefront and disable all plugins except for WooCommerce. If that resolves the issue, then re-enable plugins one-by-one until you find the one that’s causing the conflict.

    If you don’t want to test on your live site, you can create a staging site using a plugin called WP Staging: https://wordpress.org/plugins/wp-staging/

    You can find a more detailed explanation on how to do a conflict test here: https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    MayKato

    (@maykato)

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Stock 1, but in cart -1 and error message’ is closed to new replies.