1
0
Fork 0
mirror of synced 2025-04-06 07:13:33 +03:00

Fixed inventories save

This commit is contained in:
Nataly 2019-11-26 14:11:18 +03:00
parent 6fa5e3d511
commit 66150bf147

View file

@ -74,7 +74,10 @@ if (!class_exists('WC_Retailcrm_Inventories')) :
continue;
}
$product->set_manage_stock(true);
if (empty($product->get_manage_stock()) {
continue;
}
$product->set_stock_quantity($offer['quantity']);
$success[] = $product->save();
}