feature variant image

How do you show the image associated with a product feature variant?

I've got Manufacturer as a feature (Type: Extended) and the list of manufacturers as the variants. I've saved the images for each variant but don't see where the image would display.

This is what my features look like:



http://www.saltwatertogo.com/aquaticlife-30-inch-t5-ho-2-lamp-marine-link-fixture.html



I did this by changing my skins/my_skin/customer/views/products/components/product_features.tpl



To:


{* $Id: product_features.tpl 11988 2011-03-05 09:44:33Z 2tl $ *}

{foreach from=$product_features item="feature"}
{if $feature.feature_type != "G"}


{if $feature.full_description|trim}{include file="common_templates/help.tpl" text=$feature.description content=$feature.full_description|unescape id=$feature.feature_id show_brackets=true}{/if}


{if $feature.feature_type == "M"}
{assign var="hide_prefix" value=true}
{else}
{assign var="hide_prefix" value=false}
{/if}

{strip}
{if $feature.prefix && !$hide_prefix}{$feature.prefix}{/if}
{if $feature.feature_type == "C"}
 
{elseif $feature.feature_type == "D"}
{$feature.value_int|date_format:"`$settings.Appearance.date_format`"}
{elseif $feature.feature_type == "M" && $feature.variants}

{elseif $feature.feature_type == "E"}

{elseif $feature.feature_type == "S"}
{foreach from=$feature.variants item="var"}
{if $var.selected}{$var.variant}{/if}
{/foreach}
{elseif $feature.feature_type == "N" || $feature.feature_type == "O"}
{$feature.value_int|default:"-"}
{else}
{$feature.value|default:"-"}
{/if}
{if $feature.suffix && !$hide_prefix}{$feature.suffix}{/if}
{/strip}

{/if}
{/foreach}

{foreach from=$product_features item="feature"}
{if $feature.feature_type == "G" && $feature.subfeatures}
{include file="views/products/components/product_features.tpl" product_features=$feature.subfeatures}
{/if}
{/foreach}





The part that does the image is:


{if $var.selected}{if $var.image_pair}

  • {include file="common_templates/image.tpl" images=$var.image_pair object_type="feature_variant"}
  • {/if}{/if}



    I hope that helps,



    Brandon