### 商品对比

<{if $diff.error==1}>

<{t}>抱歉，您选的对比物品超过4个<{/t}>

<{else}>
<{if $diff.goods}>

<{t}>商品名称<{/t}> <{foreach from=$diff.goods item=goods}> | " title="<{$goods.name}>"><{$goods.name}> <{/foreach}>
--- | ---
<{t}>商品图片<{/t}> <{foreach from=$diff.goods item=goods}> | "> <{/foreach}>
<{t}>商品价格<{/t}> <{foreach from=$diff.goods item=goods}> | <{$goods.price|cur}> <{/foreach}>

<{foreach from=$diff.goods item=goods}>

<{goodsmenu product=$goods compare=true setting=$setting zindex=10}>

<{/foreach}>

<{foreach from=$diff.params item=params key=group }>
<{$group}> <{foreach from=$params item=p key=item name="param"}>
<{$item}> <{foreach from=$diff.goods item=goods}> | <{$p[$goods.goods_id]}> <{/foreach}>
<{/foreach}> <{/foreach}>

<{else}>

<{t}>没有选中商品<{/t}>

<{/if}>
<{/if}> <{javascript file='goodscupcake.js'}>