简体   繁体   English

如果产品在magento 1.9.3中具有特价,则不会显示Tier Price

[英]Tier Price is not showing if the product has special price in magento 1.9.3

Screenshot of tier price that are not showing: 未显示的分级价格的屏幕截图:

未显示的分级价格的屏幕截图

Below is the code that I am used to display tier price in listing and product view page 以下是我用于在列表和产品查看页面中显示等级价格的代码

$this->getTierPriceHtml()

Below is snippet of code that magento used to check tier price in tierprice.phtml file. 以下是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;

But I don't understand why it is not showing in listing and view page. 但我不明白为什么它没有显示在列表和视图页面中。

Somebody please help me to fix this issue. 有人请帮助我解决此问题。

Finally I find out the reason that why it was not showing. 最后,我找出了为什么它没有显示的原因。 The Tier price must be less than or equal to special price otherwise magento won't show the tier price.. 层级价格必须小于或等于特惠价,否则magento将不会显示层级价格。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM