cancel
Showing results for 
Search instead for 
Did you mean: 

Current Inventory Number for Use on Product Page

SOLVED

Current Inventory Number for Use on Product Page

I have been trying unsuccessfully to obtain the current inventory numbers of configurable products for use on the product page. Though it may not be the best way, I was able to retrieve it for basic products with the block class 'Magento\Catalog\Block\Adminhtml\Product\Edit\Tab\Inventory'. Does anyone have a solution to this problem or is this something I would need to write a custom module for? 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Current Inventory Number for Use on Product Page

Ended up just making a custom module. Thanks. 

View solution in original post

3 REPLIES 3

Re: Current Inventory Number for Use on Product Page

What is "inventory number"? Is it SKU?

Re: Current Inventory Number for Use on Product Page

The current stock qty; so, for example, I currently have 217 Joust Duffle Bags in stock. I want to be able to test that number against the user inputted number in the QTY input on the product page against the current inventory number before the user clicks add to cart. 

Re: Current Inventory Number for Use on Product Page

Ended up just making a custom module. Thanks.