Support » Plugin: Stock Locations for WooCommerce » Stock management has bug

  • Resolved xllentech



    Thank you for a simple yet nice plugin.

    Found a bug, see screenshot of order notes..
    1, adding the product to order is 20-1=19.
    2, then deleting the product from the order is 18+1=19, instead of 19+1=20
    3, adding the product to order again, 19-1=18

    repeating the steps of adding and removing product, reduces stock by 1. and yet inside the product net qty in stock was 17.

    Also, not sure what the warning is at the top here..

    Lastly, wondering if you have any plans to create an option to make the stock locations and qty displayed on product page and be able to select location when adding to cart?

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor alexmigf


    Hi @xllentech

    Apparently this is a bug from WooCommerce, because the plugin uses the filter woocommerce_can_reduce_order_stock to prevent WC to change the stock, but when that happens on the backend the Ajax request is ignoring this filter. I have opened an issue in WC, when i get more information i will return to you again.

    About the suggestion for the product page, sounds great, i will consider that for a new major release.

    Thread Starter xllentech


    Awesome. I appreciate your help.

    Plugin Contributor alexmigf


    Hello @xllentech

    I received an answer from WooCommerce, it seems that this situation is not a priority right now for them. The solution would be disable stock management on product level, but that would require much work and i don’t have much free time right now. I will have to think about that a little more.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Stock management has bug’ is closed to new replies.