1
在我的Magento站点,我增加的产品数量与价格为0.00元。检查产品的价格附加条件在Magento
现在的产品都显示以价格为$ 0.00元。
,所以我想显示的价格为not mentioned
而不是$0.00
。
我该怎么做?
的price.phtml条件是什么,我需要写是什么?
我的条件是:
if price == 0.00 display the text 'not mentioned'
在我的Magento站点,我增加的产品数量与价格为0.00元。检查产品的价格附加条件在Magento
现在的产品都显示以价格为$ 0.00元。
,所以我想显示的价格为not mentioned
而不是$0.00
。
我该怎么做?
的price.phtml条件是什么,我需要写是什么?
我的条件是:
if price == 0.00 display the text 'not mentioned'
尝试。
<?php
if ((int)$this->getPrice()){
echo $this->getPrice();
}else {
echo "not mentioned";
}
?>
纠正我,如果我错了。
^^