• Resolved marciosironi

    (@marciosironi)


    I need to create a product with variations, but inventory management needs to be done at the “Product Level” rather than controlling the stock for each variation.
    It seems that the plugin does not work with this configuration.

    Can someone help me?

    PS. If I put varying stock management, it works, but it’s not what I need.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author James Golovich

    (@jamesgol)

    It has worked in that configuration in the past and I’m pretty certain with the WooCommerce 3.x upgrades I tested that exact configuration. Can you take screenshots of your product setup?

    Thread Starter marciosironi

    (@marciosironi)

    Error

    If I mark a product as “Variable Product” and mark “Enable stock management at product level”, what happens is that the stock is now managed by the standard Woocommerce script. It’s as if the plugin was disabled in this case.

    Plugin Author James Golovich

    (@jamesgol)

    If you want to try a quick fix out, edit woocommerce-cart-stock-reducer/includes/class-woocommerce-cart-stock-reducer.php line 972 from:
    $stock = $product->get_stock_quantity( ‘edit’ );
    to:
    $stock = $product->get_stock_quantity( ‘view’ );

    Though it’s possible some other issues will pop up because of the change. I’m away on vacation now, but when I get a chance I’ll explore the issue more.

    Thread Starter marciosironi

    (@marciosironi)

    worked perfectly. Thank you very much for the support.

    Plugin Author James Golovich

    (@jamesgol)

    After testing that is not a complete proper fix, it causes other issues. I did just commit a change that should take care of it. I’ve got a few other things to fix up before releasing a new version.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Inventory vs variations’ is closed to new replies.