VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: BeMo on March 25, 2015, 13:25:22 PM

Title: Product Image description changes and shows meta-tags
Post by: BeMo on March 25, 2015, 13:25:22 PM
The first load of the product page gives the main image the "The image description" text.
Start clicking the thumbnails, the text change to show the "Meta tags" text.
http://elsykler.no/upgrade/index.php/haibike-elsykler/haibike-xduro-nduro-pro-detail

VirtueMart 3.0.6.2
Joomla! 3.4.0
Title: Re: Product Image description changes and shows meta-tags
Post by: jjk on March 30, 2015, 18:25:18 PM
In VM2 I changed this line (somewhere around line 570 - depending on your VM version) in \administrator\components\com_virtuemart\helpers\mediahandler.php
from
if ($file_alt ) $file_alt = 'title="'.$file_alt.'"';
to
if ($file_alt ) $file_alt = 'title="'.$withDesc.'"';

But in VM3 this only works for the first image and it breaks the display of the image title for the additional images completely. At present I don't know a solution for this either.

Title: Re: Product Image description changes and shows meta-tags
Post by: jjk on March 31, 2015, 10:15:34 AM
Update: the above 'hack' will work again with the next release of VirtueMart (3.0.7+) Watch for the new release here: http://dev.virtuemart.net/projects/virtuemart/files