View Single Post
  #4  
Old 09-20-2006, 06:38 PM
  dalmuti's Avatar 
dalmuti dalmuti is offline
 

eXpert
  
Join Date: Oct 2004
Location: Kansas
Posts: 343
 

Default Re: Product Variant Thumbnails - How To Display?

Ok, I've made some progress but I need some assistance with the code I created.

Here is the code - template name (option_images.tpl):

Quote:
<table>
<tr>
{foreach from=$variants item=var}
<td width="100" align="center">
<img src="{$var.image_url}" width="75" height="75">
<br />
{foreach from=$var.options item=o}
{$o.option_name}
{/foreach}
</td>
{/foreach}
</tr>
</table>
{/if}

This template is then inserted into the product.tpl.

Here is the result:
http://www.studio57designs.com/sample2.gif

But, I don't know how to code it so that it will flow to the next row for more than 5 images.....like the subcategories icon mod.

Also, I want to make each image a link to the product page.

Now that I've got this far can someone help me figure out these last 2 steps.

Thanks,

Louise
__________________
Louise

Studio 57 Designs - X-Cart Customization
Providing X-Cart Services since 2004
Hottest Blog Directory - Submit Your Blog for a Free Listing
Reply With Quote