- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2020
02:04 PM
07-27-2020
02:04 PM
How to add stock quantity on the product sheet?
I need to add the quantity of stock in each product
Labels:
4 REPLIES 4
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2020
11:22 PM
07-27-2020
11:22 PM
Re: How to add stock quantity on the product sheet?
Hi @asistemasg3830 ,
Please try the below code in your phtml file to get the stock quantity of the product.
$stock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product); echo $stock->getQty(); echo $stock->getMinQty(); echo $stock->getMinSaleQty();
Hope this helps you!
Problem Solved! Click Kudos & Accept as Solution!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2020
08:55 AM
07-28-2020
08:55 AM
Re: How to add stock quantity on the product sheet?
Thank you !
Where is the phtml file located?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2020
03:14 AM
07-29-2020
03:14 AM
Re: How to add stock quantity on the product sheet?
Hi @asistemasg3830 ,
According to Vanilla Magento, your phtml file path should be like this which is rendering on the product page to show the data.
app/design/frontend/rwd/default/template/catalog/product/view.phtml
if you are using some third-party theme, then you need to check the same PHTML in your theme.
Hope this helps you!
Problem Solved! Click Kudos & Accept as Solution!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2021
11:17 PM
03-09-2021
11:17 PM
Re: How to add stock quantity on the product sheet?
- The Listing Settings screen displays with the Product Listing Actions section expanded by default.
- Click Stock/Quantity to expand the section.
- The Stock/Quantity settings are used to sync the product quantity details from your Magento storefront to the quantity on your Amazon Seller Central account.
I hope you got your answer.