VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: TRIPLEdm on June 22, 2013, 21:58:38 PM

Title: ADD "Enlarge Image" link at bottom of the images
Post by: TRIPLEdm on June 22, 2013, 21:58:38 PM
Hello,

I have searched and can only find solutions for multiple images and cannot find the code for the link on the image on product view for the life of me...

In the product list view, category view and product details view, where you see the product image I want to add "Enlarge Image" text linked at the bottom of the image and when clicked on it opens the large version of the image.

Please can someone help me!

Thank you!

Joomla 2.5.11
VM 2.0.20b
Title: Re: ADD "Enlarge Image" link at bottom of the images
Post by: TRIPLEdm on June 23, 2013, 15:44:18 PM
I feel a bit lost and alone... is there anybody who can help me please?
Title: Re: ADD "Enlarge Image" link at bottom of the images
Post by: jenkinhill on June 24, 2013, 20:22:38 PM
For product details the template file displaying the images is components/com_virtuemart/views/productdetails/tmpl/default_images.php  - so you need to work to echo your text within the div class="main-image"

Not so easy for cat layout as they work differently, linking to the product details page rather than a fancybox. Unless of course you use a commercial template or one already with VM template overrides.

In any case you should use your edited template file(s) as override.  http://docs.virtuemart.net/tutorials/33-templating-layouts.html and http://www.ostraining.com/blog/joomla/overrides
Title: Re: ADD "Enlarge Image" link at bottom of the images
Post by: TRIPLEdm on June 25, 2013, 13:33:15 PM
Thank you, it seems like I have some work to do (study more like it).