OK thanks @Salva. So, basically, once MI is enabled, is WC inventory for a product automatically shown under the Main Inventory?
I am asking so that we understand whether (once enabled), we can simply inquire for the list of product inventories used for a product in an order or whether we have to check whether it has MI enabled first on a product or not.
Also, regarding this response:
_And to get all the inventories added to a specific product, you can use this helper:
\AtumMultiInventory\Inc\Helpers::get_product_inventories_sorted( $product_id );
That would return an array of Inventory objects._
Will this return a list of all inventories of this product or a list of the inventories that were used in the product quantities added in the specific order? My rationale is:
Get the cart items -> get the product -> is it simple or variation -> get product id of simple or variation -> get inventories used for this product id in this order -> iterate through inventories and extract price info accordingly.
If the above is not the case, what methods allow us to link the order down to the inventory used for a specific product in filling that order?
Thanks once more for your response.