VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: beachy on February 17, 2013, 14:00:35 PM

Title: Update $mainImages->file_description on selection of main product image
Post by: beachy on February 17, 2013, 14:00:35 PM
I am having issues updating the $mainImages->file_description when a thumbnail other than the main product image is selected.

The $mainImages->file_description is displayed correctly but it does not change when another image is selected.

I am still new to VM2 so I accept I may well be going about this in the wrong way!
Title: Re: Update $mainImages->file_description on selection of main product image
Post by: beachy on February 21, 2013, 21:08:19 PM
Just in case someone knows the answer but doesnt understand my question:

I want to display the image title (description) for each of the images listed against the product. All of the thumbnails are present and the image title for the first image displays correctly. However, if I select another thumbnail the main image is re-loaded with the new image but the image title remains the same as the previous image.

I have added the code $mainImages->file_description which works for the first image but doesn't update when other thumbnails are selected.

Has anyone a solution or come across this before??
Title: Re: Update $mainImages->file_description on selection of main product image
Post by: beachy on March 06, 2013, 22:00:47 PM
Does anyone have a working product layout that this successfully works on??

Is it possible to have a copy of the code which relates to displaying the image title so that I can debug my code??
Title: Re: Update $mainImages->file_description on selection of main product image
Post by: goofyboy on September 03, 2013, 11:26:08 AM
here the same problem, someone the solution?
Title: Re: Update $mainImages->file_description on selection of main product image
Post by: Maxim Pishnyak on September 04, 2013, 23:25:17 PM
Quote from: goofyboy on September 03, 2013, 11:26:08 AM
here the same problem, someone the solution?
Your VM version and url to the issue, please.