Magento Paper

I care about your words

Showing posts with label quantity. Show all posts
Showing posts with label quantity. Show all posts

Monday, October 17, 2011

How to get products available stock quantity in magento?

Here is the code to get produts stock quantity. Place this code in your view.phtml file.
echo $qtyStock = (int) Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty();
Posted by Unknown at 6:27 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: get, Magento, products, quantity, stock
Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ▼  2013 (5)
    • ▼  May (2)
      • How to reset magento Admin user, role and resource...
      • How to post data using curl / Zend_Http_Client
    • ►  April (3)
  • ►  2012 (6)
    • ►  October (1)
    • ►  April (1)
    • ►  March (3)
    • ►  February (1)
  • ►  2011 (158)
    • ►  October (15)
    • ►  September (42)
    • ►  August (35)
    • ►  July (17)
    • ►  June (3)
    • ►  May (46)

Popular Posts

  • "Image type and information need to be specified for each store view" Product Image upload problem in magento 1.6
  • Magento: How to get visitor or guest information and ip address?
  • How to add Terms and Conditions in magento customer registration form?
  • How to post data using curl / Zend_Http_Client
  • How to get configurable products attributes / super attributes details in magento?

Map

Feedjit

Magento Talks. Watermark theme. Powered by Blogger.