Jump to content

[SOLVED] Image ALT is not retrieved


Recommended Posts

On my product page http://dominator.cc/en/tote-bags-for-men/ I have 6 products.

The ALT property is correctly retrieved only for 3 of them: №1-№3-№5

 

Here is a code for that from product-list.tpl:

<img  src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html':'UTF-8'}" alt="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}" title="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} />

So, if the $product.legend is empty, the product's title should appear in ALT tag, however the $product.legend property for these products is not blank, I checked that in DB. Additionally, on the related product page http://dominator.cc/en/tote-bags-for-men/handmade-tote-bag-for-men-leather-pyrographied-chimeras-2 the ALT tag of first thumb is correctly displayed.

 

On my another product list page http://dominator.cc/en/messenger-bags-for-men/ there is no such issue, so the bug is not in TPL file.

 

I already tried to delete the image, then create a new one with ALT tags -- same thing. Any ideas?

Edited by vitalite (see edit history)
Link to comment
Share on other sites

Hm, you are right. I just tested and added caption to my image and it doesn't retrieve

So you have the same issue?

on my page, some $product.legend are correctly retreived, certains -- not. The original PS code was not changed...

Link to comment
Share on other sites

  • 2 weeks later...
×
×
  • Create New...