ecshop二级页面,在哪里修改?
发布网友
发布时间:2022-11-20 18:26
我来回答
共3个回答
热心网友
时间:2023-12-19 21:37
打开themes/我的模板名称/library/goods_list.lbi
拿默认模板为例
<!-- {elseif $pager.display == 'grid'} -->
<div class="centerPadd">
<div class="clearfix goodsBox" style="border:none;">
<!--{foreach from=$goods_list item=goods}-->
<!-- {if $goods.goods_id} -->
<div class="goodsItem">
<a href="{$goods.url}"><img src="{$goods.goods_thumb}" alt="{$goods.goods_name}" class="goodsimg" /></a><br />
<p><a href="{$goods.url}" title="{$goods.name|escape:html}">{$goods.goods_name}</a></p>
<!-- {if $show_marketprice} -->
{$lang.market_prices}<font class="market_s">{$goods.market_price}</font><br />
<!-- {/if} -->
<!--{if $goods.promote_price neq "" } -->
{$lang.promote_price}<font class="shop_s">{$goods.promote_price}</font><br />
<!--{else}-->
{$lang.shop_prices}<font class="shop_s">{$goods.shop_price}</font><br />
<!--{/if}-->
<a href="javascript:collect({$goods.goods_id});" class="f6">{$lang.btn_collect}</a> |
<a href="javascript:addToCart({$goods.goods_id})" class="f6">{$lang.btn_buy}</a> |
<a href="javascript:;" id="compareLink" onClick="Compare.add({$goods.goods_id},'{$goods.goods_name|escape:"html"}','{$goods.type}')" class="f6">{$lang.compare}</a>
</div>
<!--{/if}-->
<!--{/foreach}-->
修改这个里面的下面的这些链接代码就可以了
<a href="javascript:collect({$goods.goods_id});" class="f6">{$lang.btn_collect}</a> |
<a href="javascript:addToCart({$goods.goods_id})" class="f6">{$lang.btn_buy}</a> |
<a href="javascript:;" id="compareLink" onClick="Compare.add({$goods.goods_id},'{$goods.goods_name|escape:"html"}','{$goods.type}')" class="f6">{$lang.compare}</a>
热心网友
时间:2023-12-19 21:38
分类页是category.dwt 这部分应该是 goods_list.lbi
热心网友
时间:2023-12-19 21:38
模板目录下面的library/goods_list.lbi