Product Inventory not working
-
Hi
I'm updating the
product inventory
from API using product id. So I was updating manually like thisProductInventory::where('product_id', $product->product_id) ->where('inventory_source_id', 1) ->update(['qty' => 10]);
After this I can see the update in dashboard and database. But in frontend it is showing
out of stock
. After debugging I came to know this function is returning0
qty.public function haveSufficientQuantity($qty) { return $this->getTypeInstance()->haveSufficientQuantity($qty); }
I'm new to bagisto but i'm not understanding what is wrong.
Thank you
-
Hi there,
Please followup Here