码迷,mamicode.com
首页 > 其他好文 > 详细

magento商店产品页显示特价的截止日期方法

时间:2014-10-17 01:24:23      阅读:315      评论:0      收藏:0      [点我收藏+]

标签:style   blog   color   for   strong   sp   div   on   log   

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>

 

magento商店产品页显示特价的截止日期方法

标签:style   blog   color   for   strong   sp   div   on   log   

原文地址:http://www.cnblogs.com/qq9915072/p/4029878.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!