开发者

Magento - show the stock indicator on product list

how 开发者_高级运维can I show the stock indicator on Magento product list ?

Thanks a lot.


To show the quantity of items left in stock use this:

<?php echo (int) Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty(); ?>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜