VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: bestcons on November 13, 2014, 22:02:52 PM

Title: Additional images in one column (version 2)
Post by: bestcons on November 13, 2014, 22:02:52 PM
While using VM 2.0.22b I posted a question to have the additional imges in one column (http://forum.virtuemart.net/index.php?topic=118284.msg400820#msg400820) which was satisfactorily answered. I had to adapt views/productdetails/tmpl/default_images.php. Up till now with every update for VM (currently 2.6.12) I replaced the new default_images.php with the earlier modified version. I checked once more the content of the default_images.php file and noticed that the content has been adapted and that the earlier modfiction is no longer possible.
Can someone advise me about the adaptations I have to make on the most recent default_images,php to obtain the identical result.
Thanks
bestcons
Title: Re: Additional images in one column (version 2)
Post by: corkys on November 13, 2014, 22:24:23 PM
I had a similar problem. They have added a new file default_images_additional.php for the additional images. it is called from the default.php on line 195.

Hope that helps.
Title: Re: Additional images in one column (version 2)
Post by: bestcons on November 15, 2014, 11:51:45 AM
Hi CorkysFoorwear, Thanks for your response. However I have great difficulties in understanding. You are saying : They have added a new default_images_additional.php. I do not see this file in the productdetails/tmpl folder. Besides the default_images.php file only contains 102 lines.
So can you be somewhat more detailed for me as a beginner.
Title: Re: Additional images in one column (version 2)
Post by: jenkinhill on November 15, 2014, 12:45:55 PM
default_images_additional.php is a VM3 file - this next version has a more advanced templating system. The latest RC is 2.9.9.5
Title: Re: Additional images in one column (version 2)
Post by: bestcons on November 15, 2014, 21:08:38 PM
Thanks Kelvyn,
But how to get the solution for my vm 2.6.12?
Regards,
bestcons
Title: Re: Additional images in one column (version 2)
Post by: bestcons on January 03, 2015, 21:34:06 PM
In the meantime I have migrated the testwebsite to VM 3.0.2. The question however remains.
In attachment 1 you see the additional images in a column in VM 2.6.14. Clicking on one of these images brings this image to the top large image. That is OK and considered as the reference. In attachment 2 you see in VN 3.0.2 the additional images in a row and not clickable.
Please advise.
bestcons

[attachment cleanup by admin]
Title: Re: Additional images in one column (version 2)
Post by: bluezeyes on January 04, 2015, 01:23:11 AM
Quote from: bestcons on January 03, 2015, 21:34:06 PM
In the meantime I have migrated the testwebsite to VM 3.0.2. The question however remains.
In attachment 1 you see the additional images in a column in VM 2.6.14. Clicking on one of these images brings this image to the top large image. That is OK and considered as the reference. In attachment 2 you see in VN 3.0.2 the additional images in a row and not clickable.


I would first check the Admin console of firefox / google chrome, if there are any errors shown. Mostly this occur when any script is used which let crashing the scripts for fancybox..
To do a basic check, enable beez3 & protostar as your default template and disable all aditional plugins.. then check if your problem still occur. Check for VM-Setting "use fancybox" is enabled too.

Title: Re: Additional images in one column (version 2)
Post by: GJC Web Design on January 04, 2015, 11:02:21 AM
Also without a live url to the problem pages everything here is just guess work
Title: Re: Additional images in one column (version 2)
Post by: bestcons on January 04, 2015, 21:07:51 PM
The link to the life url of annex 1 is: http://www.oudvorden.nl/index.php/component/virtuemart/boerderij/baakseweg2014-04-18-06-55-23808573048/baakseweg-3-detail?Itemid=0
The link to the migrated testwebsite for annex 2 is: http://www.dedecanije.nl/index.php/component/virtuemart/boerderij/baakseweg2014-04-18-06-55-23808573048/baakseweg-3-detail?Itemid=114
Please realise that the test website is a real copy of the life website. So using the menu, let you jump tot the life website through the hyperlinks. Hence you find for accessing at the bottom left a menu called vm-category.
Fancybox was not enabled, it is now. I do not receive error messages from Firefox.
Hope you can assist me.
bestcons
Title: Re: Additional images in one column (version 2)
Post by: GJC Web Design on January 04, 2015, 21:23:42 PM
the vert alignment is because they have a line break between each thumb and no float or width  applied

that can only come from your template - the std  default_images_additional.php is completely different code - are u still using old over rides?
- btw when I click them the top image changes

and if you  really want to P off anyone that tries to help you incl. a no right click plugin!



[attachment cleanup by admin]
Title: Re: Additional images in one column (version 2)
Post by: bestcons on January 04, 2015, 22:03:53 PM
"No right click" switched off  :-[
Overrides are disabled in shop template settings.  Clicking on the thumbs brings the image indeed to the top as you noticed on the life website. I just saw that disabling the overrides has enabled this same behaviour on the testwebsite. So what remains is the vertical arrangement.
bestcons
Title: Re: Additional images in one column (version 2)
Post by: GJC Web Design on January 05, 2015, 00:49:12 AM
I wouldn't be happy with just trying to switch over rides off in the admin..

rename the templates/MY_TEMPLATE/html/com_virtuemart to e.g. templates/MY_TEMPLATE/html/com_virtuemart_____

to be certain -- this other rendering can only be from your template - it is completely different to the native rendering
Title: Re: Additional images in one column (version 2)
Post by: bestcons on January 05, 2015, 17:26:01 PM
There is no such file. In the html folder there are only modules.php and index.html
bestcons
Title: Re: Additional images in one column (version 2)
Post by: GJC Web Design on January 05, 2015, 20:15:26 PM
then don't know - you need to dig in the files or employ someone to do it for u
Title: Re: Additional images in one column (version 2)
Post by: bestcons on January 07, 2015, 15:45:41 PM
Further to the first question from bluezeyes: I encountered a script error: http://www.mywebsite/media/jui/js/jquery.js:5171
Doed that give yoy a clue?
bestcons
Title: Re: Additional images in one column (version 2)
Post by: GJC Web Design on January 07, 2015, 15:48:19 PM
it has nothing to do with JS - it is simple code layout