ecshop教程:商品详细页的商品属性放到上面
ecshop商品属性的模块是在下面,与商品详细页切换的,有些客户觉得不太方便希望将商品描述直接放到上面与重量价格等显示在一起,那么怎么操作呢。
打开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}-->
这样就可以了,之后清缓存看看。