Jump to content

Thumbnails on Product List Pages


Recommended Posts

On my product list template, I would like to to display my thumbnails under my main photo to show other colors that a product comes in. I've created a image size called 'productlistthumb' and they're 70x70 which work perfect. Vekia gave me this code which worked with my 1.5.6.4 version of prestashop, but now that I updated to 1.6.0.11 it doesn't work. Can anyone help me?

<span id="thumbs_list_frame">
    {if isset($images[$product.id_product])}
        {foreach from=$images[$product.id_product] item=image name=thumbnails}
        {assign var=imageIds value="`$product.id_product`-`$image.id_image`"}
        <span id="thumbnail_{$image.id_image}" style="display:inline;">

                <img  id="thumb_{$image.id_image}" src="{$link->getImageLink($product.link_rewrite, $imageIds, 'productlistthumb')}" alt="{$image.legend|htmlspecialchars}"  alt="" title="{$product->name|escape:'htmlall':'UTF-8'}" width="{$productlistthumbSize.width}" height="{$productlistthumbSize.height}"  />

        </span>
        {/foreach}
    {/if}
</span>
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...