Categories
CMS Development Magento

How to get total default quantity stock in stock and salable quantity stock in product In Magento 2?

I want to get 2 values.
1. How much total quantity assigns to the product? example(50)
2. How much is the total quantity remaining for that particular product?
Like if 50 quantity is there and if 5 quantity order so remaining or available quantity is 45.

Can anyone help me?

Leave a Reply

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