Modifying the product filters template?

I created a page with a block using the product filter feature to display a list of all the Brands. I would like to display the logo next to each brand as well, and I’m assuming that I need to modify blocks/products_filters_extended.tpl but I do not know what code to add. I would guess it’s something like this, but I know the variables need to be changed:

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



Can anyone help me out?

Close. Try this.


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

Thanks, but unfortunately that didn’t work. Nothing shows up.



Here’s the original code for products_filters_extended.tpl

```php {if $items}



{assign var=“fh” value=$smarty.request.features_hash}

{foreach from=$items item=“filter” name=“filters”}


    {foreach from=$filter.ranges name="ranges" item="range"}

  • {strip}
    {if $range.selected == true}
    {$range.range_name|fn_text_placeholders}
    {else}
    {$range.range_name|fn_text_placeholders}
    {/if}
    {/strip}

  • {/foreach}


{/foreach}

{/if} ```