Post by Dubblicious » Fri Jun 24, 2011 12:55 pm

Hello everyone.
I would like to have text under the thumbnails of my products that says "click photo to enlarge". What is the best way to do this ? Can I do this in the template or would I have to do it after every image ?
Thanks in advance for you advice.
v1.5.0.5 clean install
Last edited by Dubblicious on Sat Jun 25, 2011 3:11 am, edited 1 time in total.

User avatar
New member

Posts

Joined
Tue Jun 14, 2011 2:35 pm

Post by florinsith » Sat Jun 25, 2011 1:25 am

In catalog/view/theme/themename/template/product/product.tpl

Find
<a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>" class="fancybox" rel="fancybox"><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" /></a>
after add
<br /><center>Click to enlarge</center>
then the hole line should look like this:
<div class="image"><a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>" class="fancybox" rel="fancybox"><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" /></a><br /><center>Click to enlarge</center></div>

Image
My Extensions - SuperTheme - Opencart templates - Opencart modules


User avatar
Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am


Post by Dubblicious » Sat Jun 25, 2011 3:12 am

florinsith wrote:In catalog/view/theme/themename/template/product/product.tpl

Find
<a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>" class="fancybox" rel="fancybox"><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" /></a>
after add
<br /><center>Click to enlarge</center>
then the hole line should look like this:
<div class="image"><a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>" class="fancybox" rel="fancybox"><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" /></a><br /><center>Click to enlarge</center></div>

Thanks florinsith , that is the solution I was looking for. ;D

User avatar
New member

Posts

Joined
Tue Jun 14, 2011 2:35 pm

Post by jas » Mon Sep 17, 2012 8:25 pm

Thanks for the Solution Florisinth.

JSKS ONLINE --> Sikh Books - CDs - Posters - Gift Items http://www.jsks.biz


jas
Newbie

Posts

Joined
Thu Feb 16, 2012 3:15 am

Who is online

Users browsing this forum: No registered users and 36 guests