vitalite Posted August 22, 2014 Share Posted August 22, 2014 (edited) 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 September 1, 2014 by vitalite (see edit history) Link to comment Share on other sites More sharing options...
dioniz Posted August 22, 2014 Share Posted August 22, 2014 I can see all alt tags on images in FF Link to comment Share on other sites More sharing options...
vitalite Posted August 22, 2014 Author Share Posted August 22, 2014 I can see all alt tags on images in FF Check on http://dominator.cc/tote-bags-for-men/ -- the ALT on products №2-4-6 is equal to product's name -- that is the error. I should have another alts on these products, like on №1-2-5 Link to comment Share on other sites More sharing options...
dioniz Posted August 22, 2014 Share Posted August 22, 2014 Hm, you are right. I just tested and added caption to my image and it doesn't retrieve Link to comment Share on other sites More sharing options...
vitalite Posted August 22, 2014 Author Share Posted August 22, 2014 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 More sharing options...
dioniz Posted August 22, 2014 Share Posted August 22, 2014 Weird. Have you upgraded? Link to comment Share on other sites More sharing options...
vitalite Posted August 22, 2014 Author Share Posted August 22, 2014 No, I'm on 1.6.0.8 Link to comment Share on other sites More sharing options...
dioniz Posted August 22, 2014 Share Posted August 22, 2014 Same on 1.6.0.9 Link to comment Share on other sites More sharing options...
vitalite Posted August 22, 2014 Author Share Posted August 22, 2014 Same on 1.6.0.9 can you post your URL? Link to comment Share on other sites More sharing options...
dioniz Posted August 22, 2014 Share Posted August 22, 2014 It's local so i can't Link to comment Share on other sites More sharing options...
vitalite Posted August 22, 2014 Author Share Posted August 22, 2014 It's local so i can't I've posted the issue on http://forge.prestashop.com/ 1 Link to comment Share on other sites More sharing options...
dioniz Posted August 22, 2014 Share Posted August 22, 2014 Great, hope they'll fix it soon Link to comment Share on other sites More sharing options...
vitalite Posted September 1, 2014 Author Share Posted September 1, 2014 Same on 1.6.0.9 Are you on default ou custom template? Link to comment Share on other sites More sharing options...
dioniz Posted September 1, 2014 Share Posted September 1, 2014 default Link to comment Share on other sites More sharing options...
Gregory Roussac Posted September 1, 2014 Share Posted September 1, 2014 Hi, Thank you for reporting this and your help debugging this. This commit should solve this issue. Regards Link to comment Share on other sites More sharing options...
vitalite Posted September 1, 2014 Author Share Posted September 1, 2014 Hi, Thank you for reporting this and your help debugging this. This commit should solve this issue. Regards This commit should fix this sql issue https://github.com/PrestaShop/PrestaShop/commit/7a15548e34f7202edb03d1e64876a4161c7f9191 Link to comment Share on other sites More sharing options...
Gregory Roussac Posted September 1, 2014 Share Posted September 1, 2014 Link to comment Share on other sites More sharing options...
Recommended Posts