<?php
if($_product->getTypeId()=='configurable'){
$childProducts = Mage::getModel('catalog/product_type_configurable')
->getUsedProducts(null,$_product);
foreach($childProducts as $child){
echo $child->getFinalPrice();
break; //it will stop you to print other prices
}
}
?>
1 回答
您是否尝试从可配置产品中获取简单产品的价格并在类别页面上打印 . 如果没有尝试,请尝试下面的代码 .
希望这对你有所帮助!