Screenshot of tier price that are not showing:
以下是我用于在列表和产品视图页面中显示分层价格的代码
$this->getTierPriceHtml()
下面是magento用于检查 tierprice.phtml
文件中的层价的代码片段 .
$_product = $this->getProduct();
$_tierPrices = $this->getTierPrices();
$_finalPriceInclTax = $this->helper('tax')->getPrice($_product, $_product->getFinalPrice(), true);
/** @var $_catalogHelper Mage_Catalog_Helper_Data */
$_catalogHelper = Mage::helper('catalog');
$_weeeTaxAmount = Mage::helper('weee')->getAmountForDisplay($_product);
if (Mage::helper('weee')->typeOfDisplay($_product, array(1,2,4))) {
$_weeeTaxAttributes = Mage::helper('weee')->getProductWeeeAttributesForDisplay($_product);
}
if (count($_tierPrices) > 0):
endif;
但我不明白为什么它没有在列表和视图页面中显示 .
有人请帮我解决这个问题 .
1 回答
最后,我找出了它没有显示的原因 . Tier价格必须小于或等于特价,否则magento将不会显示等级价格 .