Product List - add additional image

I need to add the additional product image when I list my products on the page. (http://www.gondolatr…m/app/products/) so I want to list both the default and additional image for each product.



I have figured out how to modify the product_list.tpl but my problem is that I do not know what smarty code I need to use for the additional image. I know I need to change

images=$product.main_pair

but I do not know what to replace $product.main_pair with. Does anybody know what the variable for the additional product images are?



The page I am modifying is skins/basic/customer/blocks/list_templates/products_list.tpl and I have copied and pasted the code that displays the main photo:




{if !$hide_links}


{/if}


{include file="common_templates/image.tpl" image_width=$settings.Thumbnails.product_lists_thumbnail_width oobj_id="`$preview_id`_`$image_id`" images=$image_pair_var object_type="product" show_thumbnail="Y" image_height=$settings.Thumbnails.product_lists_thumbnail_height}

{if !$hide_links}

{/if}


{assign var="rating" value="rating_$obj_id"}
{$smarty.capture.$rating}


I just need to know how to change the code over so that it displays the additional photo or at least the first additional photo.

Thanks

I was able to get this to work but unfortunately I have to define the url to the image (not how I would prefer to do it because I have to create the variable for each product). Does anybody know how I can do this so that it automatically finds the second image and uses it? Below is the code on how I

got it to work.```php


{if $category_data.category_id == “254”}

{if $obj_id == '244'}

{assign var=“image_two” value=[url=“http://www.yoursite.com/images/thumbnails/0/150/150/right-image.jpg”]http://www.yoursite.com/images/thumbnails/0/150/150/right-image.jpg[/url]}

{else}

{assign var=“image_two” value=“http://www.yoursite.com/images/no_image.gif”}

{/if}



{if !$hide_links}


{/if}



{* include file="common_templates/image.tpl" image_width=$settings.Thumbnails.product_lists_thumbnail_width obj_id="`$preview_id`_`$image_id`" images=$product.main_pair object_type="imageid" show_thumbnail="Y" image_height=$settings.Thumbnails.product_lists_thumbnail_height *}

{if !$hide_links}

{/if}


{assign var="rating" value="rating_$obj_id"}
{$smarty.capture.$rating}

{/if}

```