diff --git a/Core.php b/Core.php index 1bd1dd7..9ad91f8 100644 --- a/Core.php +++ b/Core.php @@ -3932,6 +3932,12 @@ public function assignOffersItemInventories(ProductContract $internal_product, P { $internal_product->set_manage_stock(false); } + else if('yes' === get_option('woocommerce_manage_stock')) + { + $this->log()->info(__('Stock is managed by variation product. Disable stock management of parent product.', 'wc1c-main')); + $internal_product_parent->set_manage_stock(false); + $internal_product_parent->save(); + } $product_quantity = $external_product->getQuantity();