Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

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