News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

ADD "Enlarge Image" link at bottom of the images

Started by TRIPLEdm, June 22, 2013, 21:58:38 PM

Previous topic - Next topic

TRIPLEdm

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
JC
www.tripledm.com
www.sapromo.com
"... Yesterday is History, Tomorrow is a Mystery, Today is a gift, that's why we call it Present"

TRIPLEdm

I feel a bit lost and alone... is there anybody who can help me please?
JC
www.tripledm.com
www.sapromo.com
"... Yesterday is History, Tomorrow is a Mystery, Today is a gift, that's why we call it Present"

jenkinhill

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
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

TRIPLEdm

Thank you, it seems like I have some work to do (study more like it).
JC
www.tripledm.com
www.sapromo.com
"... Yesterday is History, Tomorrow is a Mystery, Today is a gift, that's why we call it Present"