View Single Post
  #2  
Old 02-20-2003, 10:56 AM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

I did a slight variation on this which shows the first detailed product image instead of the thumbnail.

First I cretaed a new template in modules/detailed_product_images/product_images_main.tpl

Code:
{if $images ne ""} {section name=image loop=$images} {if $images[image].avail eq "Y"} {if $smarty.section.image.index eq 0} [img]../product_image.php?imageid={$images[image].imageid}[/img] {else} {/if} {/if} {/section} {/if}

Then amended the product.tpl template to show the code below where you want the detailed image to show:

Code:
{if $active_modules.Detailed_Product_Images ne ""} {include file="modules/Detailed_Product_Images/product_images_main.tpl" } {else} {include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product} {/if}

This will show the detail image if there is one, if not then show the thumbnail and if there isn't one of those then the standard no image icon will appear. You will need to load a new personalised one up.
__________________
ex x-cart guru
Reply With Quote