I would like a little guidance for tweaking a line of code in product_thumbnail.tpl. I use BCSE easy variant view mod it lists all the variants in a table format for easy image viewing and ordering. The problem is that each variant image pulls the PRODUCT name and puts it into the alt tag. Some of my products have 100 variants, that means that I have the same "alt" tag repeated 100 time on a page... not good for seo.
My solution (unless a better one is offered) is to make the thumbnail image pull the variant name and insert it into the alt tag instead, creating unique alt tags on my product pages.
Here is the orginal code:
Code:
{if $image_y ne 0} height="{$image_y}"{/if} alt="{$product|escape}" style="border: thin solid #ccc" />
Here is what I am trying to do:
Code:
{if $image_y ne 0} height="{$image_y}"{/if} {if $active_modules.Easy_Variant_View and $main eq "product" and $product.product} alt="{$vntopt.option_name|escape}" {else} alt="{$product|escape}"{/if} style="border: thin solid #ccc" />
the line in the bcse_evv.tpl that calls for the thumbnail image is
Code:
{include file="product_thumbnail.tpl" productid=$vntimg_id product=$product.product tmbn_url=$vntimg_url id="bcse-evv-thumb-"|cat:$vntid image_x=$vntimg_thumb_width type=$vntimg_type}
maybe this could be adjusted easier to accomplish what I'm trying to do?
does that look like it makes sense and should work?