News:

Looking for documentation? Take a look on our wiki

Main Menu

Product Image description changes and shows meta-tags

Started by BeMo, March 25, 2015, 13:25:22 PM

Previous topic - Next topic

BeMo

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

jjk

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.

Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

jjk

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
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations