I have 3 stocks, each having its own source. Every source is assigned to some or the other product.
When an order is placed with one of these products, how do I find out the source for each product in the order.
I tried using the method-
$orderItem->getProduct()->getQuantityAndStockStatus()
returns
{ ["is_in_stock"]=> bool(false) ["qty"]=> float(0) }
However,
$orderItem->getProduct()->isInStock()
returns
true
Any ideas would be appreciated. Thanks!