ECSHOP商品详细描述调用商品相册的方法
打开 goods.dwt 文件
查找:
<!– #BeginLibraryItem "/library/goods_tags.lbi" –><!– #EndLibraryItem –>
</blockquote>
<!– {if $package_goods_list} –>
<blockquote>
<!– {foreach from=$package_goods_list item=package_goods} –>
<strong>{$package_goods.act_name}</strong><br />
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#dddddd">
<tr>
<td bgcolor="#FFFFFF">
<!– {foreach from=$package_goods.goods_list item=goods_list} –>
<a href="http://www.adminbuy.cn/goods.php?id={$goods_list.goods_id}" target="_blank">{$goods_list.goods_name}</a> X {$goods_list.goods_number}<br />
<!– {/foreach} –>
</td>
<td bgcolor="#FFFFFF">
<strong>{$lang.old_price}</strong><font class="market">{$package_goods.subtotal}</font><br />
<strong>{$lang.package_price}</strong><font class="shop">{$package_goods.package_price}</font><br />
<strong>{$lang.then_old_price}</strong><font class="shop">{$package_goods.saving}</font><br />
</td>
<td bgcolor="#FFFFFF">
<a href="javascript:addPackageToCart({$package_goods.act_id})" style="background:transparent"><img src=http://www.adminbuy.cn/uploadfile/2016/0229/20160229091348611.gif" alt="{$lang.add_to_cart}" /></a>
</td>
</tr>
</table>
<!– {/foreach} –>
</blockquote>
<!– {/if} –>
<blockquote>
<!– #BeginLibraryItem "/library/goods_related.lbi" –><!– #EndLibraryItem –>
</blockquote>
<blockquote>
<!– #BeginLibraryItem "/library/goods_fittings.lbi" –><!– #EndLibraryItem –>
</blockquote>
<blockquote>
<!– #BeginLibraryItem "/library/bought_goods.lbi" –><!– #EndLibraryItem –>
</blockquote>
</div>
在其后面插入下面代码:
<div style="text-align:center">
<!– {foreach from=$pictures item=picture name=picture}–>
<img src="http://www.adminbuy.cn/{$picture.img_url}" />
<!–{/foreach}–>
</div>