您的位置:首页 > 运维架构

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

2013-08-18 09:30 309 查看
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}-->

这样就可以了,之后清缓存看看。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: