Jump to content

怎样调用某一个产品下的图片到more info中来


cclove

Recommended Posts

在PS中如果一个产品你添加了几张图片,那么在大图下面就会有几张小图,我想把这些小图调用到下面的more info中来,
我在模板中的product.tpl文件中添加了下面这段代码

>
</pre>
<ul>
    {foreach from=$images item=image name=thumbnails}
    {assign var=imageIds value=`$product->id`-`$image.id_image`}

getImageLink($product->link_rewrite, $imageIds, 'thickbox')}" rel="other-views" class="{if !$jqZoomEnabled}thickbox{/if} {if $smarty.foreach.thumbnails.first}shown{/if}" title="{$image.legend|htmlspecialchars}">
getImageLink($product->link_rewrite, $imageIds, 'infoimg')}" alt="{$image.legend|htmlspecialchars}" height="{$infoimgSize.height}" width="{$infoimgSize.width}" />


     {/foreach}
</ul>


并在后台新建了个参数infoimg来定义图片大小,测试的时候就在IE内核的浏览器中不显示图片,其它浏览器都显示,不明白为什么,想问问大家在这里,
谢谢!!!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...