Support » Plugin: WooCommerce » Stock become negative after purchase

  • Casper

    (@reycasper21)


    Hi,

    Please could someone help me, every time someone purchase, the stock level become negative the exact qty of the purchase item.

    Example: Stock before purchase is 100, after successful purchase of 5 qty the stock level become -5.

Viewing 4 replies - 1 through 4 (of 4 total)
  • MariuszSzatkowski

    (@motylanogha)

    Hi Casper,
    It seems that you are using caching plugins or your website is strongly cached by your provider.
    I’d suggest testing this issue without any caching plugin or settings introduced. If the problem will still exist, please ask your hosting provider to disable that for you.
    I’d also check if you are allowing backorders and make sure that you are using the newest WooCommerce version.

    I hope that will help.

    Thanks,
    M

    Casper

    (@reycasper21)

    Hi Mariusz,

    Thanks for the info, I am not using any caching plugin in the site and also in the server side. But i am using CloudFlare and backorder is set to do not allow.

    Here’s the version of wp and wc i am using.

    WC version:3.1.0
    WP version:4.8
    WC database version:3.0.9

    MariuszSzatkowski

    (@motylanogha)

    Thanks for response Casper, did you set Cloudflare to work properly with your WooCommerce installation?
    I mean bypass cache on cookie described here: https://support.cloudflare.com/hc/en-us/articles/236166048-Caching-Static-HTML-with-WordPress-WooCommerce
    Especially the ending suggestion is crucial to use the proper CF configuration:
    WordPress (native) wp-.*|wordpress.*|comment_.*
    WordPress with WooCommerce wp-.*|wordpress.*|comment_.*|woocommerce_.*

    It’s a good point to start the investigation what’s wrong with the order as it’s not in common for WooCommerce not to upgrade the stock status.

    Cheers!
    M

    Casper

    (@reycasper21)

    Hi Mariuz,
    I turn off cloudflare and wait for a couple of hours and do another test but still the same.

    I have some screenshot of whats going on.

    Before purchase stock level is 1000:
    https://drive.google.com/open?id=0B8EzrYLOiBERdE9BYVJwNlRiZk0

    Customer purchase 5 quantity of that item
    https://drive.google.com/open?id=0B8EzrYLOiBERVWZJTk4yWVdhVk0

    When i check the order status:
    https://drive.google.com/open?id=0B8EzrYLOiBERQW1HUXlETDBiNmc

    Whats strange is that the stock level detected is 0 and the new purchase 5(qnty) is treated as backorder even if its not allowed.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Stock become negative after purchase’ is closed to new replies.