How to get product available qty in Magento 2?

In Magento 2 we can simply get product qty from product object. We can get product data from either by id or by SKU.

Please check below code snippet for getting product qty in Magento 2,

Call template file by below code,

One Reply to “How to get product available qty in Magento 2?”

Leave a Reply

Your email address will not be published. Required fields are marked *