Jump to content

imageManager


gswant

Recommended Posts

Good evening,
I purchased a "Prestablog" module which takes the ALT tag from imageManager, prestashop 1.7.4.
It seems however that there is a problem in the function and the alt tag is not powered.


line 89
return '<img src = "'. self :: getThumbnailPath ($ cacheImage, $ disableCache). '" alt = "" class = "imgm img-thumbnail" />';
[/ CODE]

The programmer tells me to go directly to prestashop but I do not know how.

I enclose your answer to my question;

 

Dear Sirs, 
After checking all prestashop's and our module datas, i found the answer. 
We use the thumbnail function from the imageManager created by prestashop. 
In this function, the alt tag is settle to empty as you can see here : 
return '<img src="'.self::getThumbnailPath($cacheImage, $disableCache).'" alt="" class="imgm img-thumbnail" />';
Since we use the thumbnails in the related products, these are empty aswell. 

And this for all thumbnails of prestashop and prestablog using this function. 
The only solution would be to modify DIRECTLY the imagemanager by adding one variable $alt and to add it in the alt tag, but this can cause several problems of recovering datas, and maybe of crashing. 
I would'nt recommend it to you, or directly contact prestashop's service. 

My kind regards, 
Tim

Link to comment
Share on other sites

Hi,

If blog module is using the default PS thumbnail function then module developer is correct. Alt data is blank in the PS thumbnail function & I don't think its possible to add alt tag directly into thumbnail function because thumbnail function is being used on multiple locations (Also title, alt info is also not available on the function).

You can report the same to PS on this URL.

https://github.com/PrestaShop/PrestaShop/issues

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...