Try the Demo

Magento Forum

   
Product Quantity in Javascript??? 
 
scma
Member
 
Total Posts:  31
Joined:  2008-04-17
 

Hello,

in PHP i know that i can read the quantity from a product:

$product Mage::getModel('catalog/product')->load($productId);
$quantity Mage::getModel('cataloginventory/stock_item')->loadByProduct($product)->getQty();

Is it possible to read the quantity from a product with javascript?
Thanks in advance and greetings from germany
Markus

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top