Author Topic: Product Image description changes and shows meta-tags  (Read 687 times)

BeMo

  • Beginner
  • *
  • Posts: 1
  • A beginner
Product Image description changes and shows meta-tags
« 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

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3534
  • using Matomo instead of Google Analytics
Re: Product Image description changes and shows meta-tags
« Reply #1 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.

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

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3534
  • using Matomo instead of Google Analytics
Re: Product Image description changes and shows meta-tags
« Reply #2 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
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations