ds19891231 2013-12-09 13:42
浏览 50
已采纳

如何使用Magento在类别视图上显示价格? [关闭]

I am looking for some suggestions from experts.

I would like to find out how to display price-box on category grid view. For better explanation I attaching src below.

Thanks!!!!

  • 写回答

1条回答 默认 最新

  • doubutao6216 2013-12-09 15:18
    关注

    Take a look @

    /app/design/frontend/base/default/template/catalog/product/list.phtml

    <?php echo $this->getPriceHtml($_product, true) ?>
    

    Site code

    <div class="batch">
       <h4 class="name"><a href="/bath-body/new-in/honeymaniatm-body-butter.html" title="HONEYMANIA™ BODY BUTTER">HONEYMANIA™ BODY BUTTER</a></h4>
       <a class="button shop" href="/bath-body/new-in/honeymaniatm-body-butter.html" title="DISCOVER">DISCOVER<span></span></a>
       <div style="display:none"> <<<<<<---- Here is the issue
       <div class="price-box"> 
       <span class="regular-price" id="product-price-1049">
       <span class="price">€7.95</span>                                    </span>
    

    You need to edit

    /app/design/frontend/base/{yourtheme}/template/catalog/product/list.phtml

    Remove

    <div style="display:none">

    (do a search for <?php echo $this->getPriceHtml($_product, true) ?> it should be around this line)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能