magento商店产品页显示特价的截止日期方法,
一种方法如下: template > catalog > product > view.phtml 在 <?php echo $this->getTierPriceHtml() ?>下面加上 1 Available until <?php echo $this->formatDate( $_product->getSpecialToDate() , 'full' )?>
另外也可以在price.html修改
template > catalog > product > price.phtml <p class="special-price"> <span class="price-label"><?php echo $this->__('Special Price:') ?></span> <span class="price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"> <?php echo $_coreHelper->currency($_finalPrice,true,false) ?> </span> <br /> <strong>Available until <?php echo $this->formatDate( $_product->getSpecialToDate() , 'full' )?></strong> <!-- 加上此句 --> </p> (责任编辑:最模板) |