ecshop优化14-商品属性显示在商品详细页

26 篇文章 0 订阅

http://www.ecmoban.com/article-1478.html





ecshop商品详细页的商品属性放到上面


ecshop商品属性的模块是在下面,与商品详细页切换的,有些客户觉得不太方便希望将商品描述直接放到上面与重量价格等显示在一起,那么怎么操作呢。

ecshop模板堂(ecmoban.com)给出解决方案

打开goods.dwt

删除一下代码


 

 <blockquote>

      <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#dddddd">

        <!-- {foreach from=$properties item=property_group key=key} -->

        <tr>

          <th colspan="2" bgcolor="#FFFFFF">{$key|escape}</th>

        </tr>

        <!-- {foreach from=$property_group item=property} -->

        <tr>

          <td bgcolor="#FFFFFF" align="left" width="30%" class="f1">[{$property.name|escape:html}]</td>

          <td bgcolor="#FFFFFF" align="left" width="70%">{$property.value}</td>

        </tr>

        <!-- {/foreach}-->

        <!-- {/foreach}-->

      </table>

     </blockquote>

 

 

 <h2 class="h2bg">{$lang.goods_attr}</h2>

 

 

 

 

  <!--{if $goods.is_promote and $goods.gmt_end_time } 促销-->

      {insert_scripts files='lefttime.js'}

      <li class="padd loop" style="margin-bottom:5px; border-bottom:1px dashed #ccc;">

      <strong>{$lang.promote_price}</strong><font class="shop">{$goods.promote_price}</font><br />

      <strong>{$lang.residual_time}</strong>

      <font class="f4" id="leftTime">{$lang.please_waiting}</font><br />

      </li>

      <!--{/if}-->

 

      这段代码下面加

 

 

 

 

 <!-- {foreach from=$properties item=property_group key=key} -->

            <!-- {foreach from=$property_group item=property} -->

          <li class="padd loop"  ><strong>{$property.name|escape:html} </strong>

          {$property.value}</li>

        <!-- {/foreach}-->

        <!-- {/foreach}-->

      

 

这样就可以了,之后清缓存看看。


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值