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

pezzi disponibili
 
anaconda
Jr. Member
 
Total Posts:  1
Joined:  2009-04-05
 

Buonasera a tutti, volevo sapere come fare per mostrare il numero di pezzi disponibili per ogni articolo in vendita…
esempio: articolo x Disponibili pz 1
grazie anticipatamente a tutti voi.

 
Magento Community Magento Community
Magento Community
Magento Community
 
chiaraweb
Guru
 
Avatar
Total Posts:  721
Joined:  2008-03-21
Aviano ~ Italy
 

<p>Disponibilità <?=Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty()?> pezzi</p>

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