Zen Cart Logo
Forums / General Questions / 'larger image' text

'larger image' text

Locked

Views: 849

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
31 Mar 2009, 3:13 PM
#1
johnboycr avatar

johnboycr

Zen Follower

Join Date:
Jan 2009
Posts:
201
Plugin Contributions:
2

'larger image' text

I have both a small and large image associated with each product. When the product is selected and displayed, there is an image shown to the left of the product description and another image displayed below the product description area. Both images have the words 'larger image' directly beneath the image. So
far so good! However, if I click on the the image displayed to the
left of the product description the pop-up display is the same size
as the original. When I click on the image that is displayed below
the product description the pop-up display is the large image.

Here is the question. Can I either a) eliminate the words 'larger
image, but ONLY for the image in the description area, or b) can I
make it so that clicking on either image creates a pop-up of the
larger image ? Can someone give me an answer to one or both
of these questions? Please include the full path name of any/all
file(s) that may need to be modified.

I use the standard nomenclature ( _LRG ) for my large images.
I am running Zen version 1.3.8 on a Win IIS platform.

Thanks for your help.

31 Mar 2009, 8:49 PM
#2
johnboycr avatar

johnboycr

Zen Follower

Join Date:
Jan 2009
Posts:
201
Plugin Contributions:
2

Re: 'larger image' text

I may actual be learning something about Zen Cart! I figured out
a resolution to my own question. It is a two step process.

  1. Define a new variable, in the english.php file (for your template),
    such as the following.

    define('TEXT_CLICK_FOR_NORMAL', 'normal image');

  2. In the templates/YOUR TEMPLATE/templates directory, edit
    tpl_modules_main_product_image.php

    The line to edit begins with document.write(
    Near the end of the line, there is a variable called

    TEXT_CLICK_TO_ENLARGE

    Replace this variable with

    TEXT_CLICK_FOR_NORMAL

    WARNING: DO NOT DELETE THE PERIODS ( . ) that are before
    and after the variable as this will really mess things up !

So, that worked for me. Any comments, please feel free reply
to this posting.

If you want to see how it looks, visit https://www.postlynx.com and look
at any of the products in the Proofs category ( hope they are
all working correctly, LOL! )

31 Mar 2009, 10:29 PM
#3
johnboycr avatar

johnboycr

Zen Follower

Join Date:
Jan 2009
Posts:
201
Plugin Contributions:
2

Re: 'larger image' text

Just a note to anyone that is going to modify their code: make
a backup of your working code BEFORE you make changes.