属性关联商品按ID排序的修改方法?

2016-07-07 16:09 来源:www.chinab4c.com 作者:ecshop专家

我的商品详情页属性关联商品总显示那几个同样的,下面这段代码修改哪里可以让它按照最新ID排列?

goods_fittings.lbi中:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- {if $fittings} -->
<!--{foreach from=$fittings item=goods}-->
<div class="goodsbox">
<div class="imgbox"><a href="{$goods.url}"><img src="{$goods.goods_thumb}" alt="{$goods.name|escape:html}" /></a></div>
<a href="{$goods.url}" target="_blank" title="{$goods.goods_name|escape:html}">{$goods.short_name|escape:html}</a><br />
{$lang.fittings_price}<b class="f1">{$goods.fittings_price}</b>
</div>
<!--{/foreach}-->
<!-- {/if} -->

回答:
顶起来!


没有人知道吗?

顶起

:):)

顶起来,顶起来!