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)

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

报告相同问题?