News:

Looking for documentation? Take a look on our wiki

Main Menu

Additional image text?

Started by vaskern, November 01, 2013, 14:01:38 PM

Previous topic - Next topic

vaskern

(In frontend when viewing a product) when the additional image is clicked and changes place with the original image, the text below the image stays the same? I suppose the "vm-img-desc" should change along with the picture, right? Anyone else seeing this?

Using VM 2.0.24, J 2.5.14

jjk

#1
Quote from: vaskern on November 01, 2013, 14:01:38 PM
Anyone else seeing this?
Using VM 2.0.24, J 2.5.14

Do you have the same problem when you temporarily change your template? Mine works. However, on my life site I actually disabled the text under the additional images in order to have more space for the mini-thumbnails of additional images.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

vaskern

Yes, same thing when I try with Beez2 and Atomic..

jenkinhill

Edit the Image Alt-Text on the image editor pane for each new image. Currently it defaults to the text used for the first product image uploaded.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

vaskern

Thanks, but alt text is already set. Take a look at the photobook for example. The "Displayed image subtitle" for the first image is "Fotoboken UppsalaƄret i bilder" and this does not change. When enlarging a photo the alt-text is displayed correctly, but when not enlarged the additional images all seem to get the same text as the first image?

jjk

Quote from: vaskern on November 06, 2013, 11:14:51 AM
Thanks, but alt text is already set.
Did you click on 'Save' again after you changed the entry?

If this doesn't work, you can disable the display in
the file ...\components\com_virtuemart\assets\css\vmsite-ltr.css, approximately line 205 (preferably in an vmsite-ltr.css template override file)
from
.vm-img-desc{display:block;}
to
.vm-img-desc{display:none;}
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

vaskern

Thanks. Did anyone take a look at the link above? Very easy to see the problem - the image changes but not the text. Strange if this is only occurs in my VM..?

jjk

Quote from: vaskern on November 06, 2013, 16:24:13 PM
Thanks. Did anyone take a look at the link above?

Yes, we did. The issue has been reported to the developers, but at present we don't have a solution yet other than the workarounds mentioned above already.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

vaskern


duran.keeley

Here is how to fix it.

/components/com_virtuemart/views/productdetails/tmpl/default_images.php

Find:
jQuery(".additional-images .product-image").click(function() {
      jQuery(".main-image img").attr("src",this.src );
      jQuery(".main-image img").attr("alt",this.alt );
      jQuery(".main-image a").attr("href",this.src );
      jQuery(".main-image a").attr("title",this.alt );

Add:
jQuery(".main-image .vm-img-desc").text(this.alt );