Magento: 显示所有子库存 Show inventory of simple product of configurable products
//$_product = $this->getProduct()
foreach ($_product->getTypeInstance(true)->getUsedProducts ( null, $_product) as $simple)
{
$stock = Mage::getModel('cataloginventory/stock_item')-&