Forums / Setting Up Categories, Products, Attributes / Removing larger image link on the product info page

Removing larger image link on the product info page

Locked

Views: 3,776

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
5 Jun 2009, 3:18 PM
#1
niffy avatar

niffy

New Zenner

Join Date:
Jun 2009
Location:
Manchester
Posts:
14
Plugin Contributions:
0

Removing larger image link on the product info page

I guess it is prettly simple to do but i cant seem to find out how to remove the larger image link on the product page

Any help would be great

Thanks

5 Jun 2009, 3:56 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,853
Plugin Contributions:
18

Re: Removing larger image link on the product info page

It's not simple to answer without the information asked for when you start a thread.

IF you search using developer's tool kit in the admin >> tools and find imgLink, you can take the code out of the file.

Many templates use different coding. Standard Zen Cart has imgLink as the class for that. If you don't find it, we'll nee a link to help.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

5 Jun 2009, 4:08 PM
#3
niffy avatar

niffy

New Zenner

Join Date:
Jun 2009
Location:
Manchester
Posts:
14
Plugin Contributions:
0

Re: Removing larger image link on the product info page

i tried the looking in the developers tool kit but no joy. Its difficult to produce a link because i'm configuring on a local server.

i'll try firebug to see if finds the code

thanks for your help

5 Jun 2009, 4:28 PM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,853
Plugin Contributions:
18

Re: Removing larger image link on the product info page

Developer's Tool Kit will work local or remote. Enter imgLink in the last box on the left, select all files - catalog in the drop down, and click on search.

Are you using an override folder?
Are you using a "store bought" template?

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

8 Jun 2009, 8:17 AM
#5
niffy avatar

niffy

New Zenner

Join Date:
Jun 2009
Location:
Manchester
Posts:
14
Plugin Contributions:
0

Re: Removing larger image link on the product info page

Thankd very much i found the ImgLink in a few folder how do i now disable it?
do i just delete the files?

10 Jun 2009, 8:11 PM
#6
acreativepage avatar

acreativepage

Zen Follower

Join Date:
Sep 2004
Posts:
146
Plugin Contributions:
0

Re: Removing larger image link on the product info page

Actually, the easiet way to do this without messing up the code is...

go to /includes/languages/english.php
find: define('TEXT_CLICK_TO_ENLARGE', 'larger image');
and remove the larger image text. So now you have define('TEXT_CLICK_TO_ENLARGE', '');

Stacee Edwards

15 Dec 2009, 3:26 PM
#7
ljdream00 avatar

ljdream00

Zen Follower

Join Date:
Jun 2007
Location:
Michigan
Posts:
168
Plugin Contributions:
0

Re: Removing larger image link on the product info page

:clap:Thanks for this, just tried it, It worked like a charm!!!!

acreativepage:

Actually, the easiet way to do this without messing up the code is...

go to /includes/languages/english.php
find: define('TEXT_CLICK_TO_ENLARGE', 'larger image');
and remove the larger image text. So now you have define('TEXT_CLICK_TO_ENLARGE', '');

Zencart Websites I've Designed:
deejaycentipede(DOT)com
djellery216(DOT)com

4 Aug 2010, 2:33 PM
#8
tcjay avatar

tcjay

Zen Follower

Join Date:
Jul 2010
Location:
Boston
Posts:
139
Plugin Contributions:
0

Re: Removing larger image link on the product info page

Thanks but if I click on the image of the product, a larger image appears. How would I change this to deactivate it? :unsure:

11 Aug 2010, 5:28 PM
#9
jorger avatar

jorger

New Zenner

Join Date:
Aug 2010
Posts:
53
Plugin Contributions:
0

Re: Removing larger image link on the product info page

Any suggestions for this?

Thanks

11 Aug 2010, 9:42 PM
#10
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,853
Plugin Contributions:
18

Re: Removing larger image link on the product info page

As you have found out, it's not a simple matter of editing out 'larger image'.

Please refer back to my posts on how to find the link OR (heaven forbid) hit reply and answer the posting tips.

An answer is simple if we can see the site and know about mods, etc.

:yes:

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

14 Aug 2010, 6:25 AM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Removing larger image link on the product info page

The link is produced by the tpl_modules_main_product_image.php template file.
Remove the lines between <script> and </script>
And then keep the line between the <noscript> and </noscript> tags, but remove those tags.
Then alter the leftover echo statement to remove the <a href> part and the constant for the larger-image message, and the closing </a>.
But keep the zen_image() call intact.

That will display just the image.

Be sure to save your edits in the appropriate override folder.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

10 Sep 2010, 2:50 AM
#13
jenred avatar

jenred

New Zenner

Join Date:
Jul 2004
Location:
Australia
Posts:
48
Plugin Contributions:
0

Re: Removing larger image link on the product info page

Thanks for that but it was still a little tricky so here it is in plainer english:

To stop the popup and "larger image" text from appearing on your product page - in your includes/templates/YOUR_TEMPLATE/templates/tpl_modules_main_product_image.php file, change this:

<script language="javascript" type="text/javascript"><!--
document.write('<?php 

echo '<a href="javascript:popupWindow(\\\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '\\\')">' . zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '</a>';
echo '<a href="javascript:popupWindow(\\\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '\\\')">' . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>'; ?>');
//--></script>
<noscript>
<?php
  echo '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '" target="_blank">' . zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>';
?>
</noscript>

to this:

<?php
  echo '' . zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '';
?>

That will leave you with the medium image and no option for clicking on to get a popup of a larger image. This is useful if you only have one image for the product.

Jen

Red Instead design. print. web. photography.

20 Oct 2010, 8:46 PM
#14
studiogrynn avatar

studiogrynn

New Zenner

Join Date:
Oct 2009
Posts:
5
Plugin Contributions:
0

Re: Removing larger image link on the product info page

To do this without modding page code, you can handle it in CSS by adding:
.imgLink {display:none}
to your template's stylesheet.css