Php 如果产品在magento 1.9.3中有特殊价格,则不显示分层价格

Php 如果产品在magento 1.9.3中有特殊价格,则不显示分层价格,php,magento,Php,Magento,未显示的分层价格屏幕截图: 下面是我用来在列表和产品视图页面中显示分层价格的代码 $this->getTierPriceHtml() 下面是magento用来检查tierprice.phtml文件中的层价格的代码片段 $_product = $this->getProduct(); $_tierPrices = $this->getTierPrices(); $_finalPriceInclTax = $this->helper('tax')->getPrice

未显示的分层价格屏幕截图:

下面是我用来在列表和产品视图页面中显示分层价格的代码

$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;
但我不明白为什么它没有显示在列表和查看页面中


有人请帮我解决这个问题。

最后我找到了它不显示的原因。
层级价格必须小于或等于特殊价格,否则magento将不显示层级价格。

仅当层级价格小于最终价格时,才会显示层级价格。