Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Getting the 'click for larger image' back

Getting the 'click for larger image' back

Locked

Views: 1,573

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
9 Jul 2006, 10:14 PM
#1
v_kirk avatar

v_kirk

Zen Follower

Join Date:
Jun 2006
Posts:
110
Plugin Contributions:
0

Getting the 'click for larger image' back

ok, i totally forgot how i changed it so that there wasnt a link to the 'click here for larger image' under the product image on the product description page, but i need to have it back now.. can someone tell me how to do this?

10 Jul 2006, 2:03 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Getting the 'click for larger image' back

Of course you do ... :smile:

Did you use your templates and overrides directory and perhaps override the:
tpl_modules_main_product_image.php

13 May 2009, 4:17 AM
#3
aly22 avatar

aly22

Zen Follower

Join Date:
Feb 2008
Posts:
174
Plugin Contributions:
0

Re: Getting the 'click for larger image' back

I have the same exact issue and now a new (monster) template in which I honestly can't quite determine where to place the CLICK FOR LARGER IMAGE link text.

custom tpl_modules_main_product_image.php from my template follows:

<?php
/**
 * Module Template
 *
 * @package templateSystem
 * @copyright Copyright 2003-2005 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_modules_main_product_image.php 3208 2006-03-19 16:48:57Z birdbrain $
 */
?>
<?php require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE)); ?> 
<div id="productMainImage" class="centeredContent back">


<div class="img_box21" style="float:left; overflow:hidden; margin-right:0;">
		  <div class="bg_inn1">
			<div class="bg_inn2">
			  <div class="bg_inn3">
				<div class="bg_inn4">
				  <div class="bg_inn5">
					<div class="bg_inn6">
					  <div class="bg_inn7">
						<div class="bg_inn8">
						  <div class="bg_inn9">
  
<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>'; ?>');
//--></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) . '</a><br /><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) . '</a>';
?>
</noscript>

  </div></div></div>
						</div>
					  </div>
					</div>
				  </div>
				</div>
			  </div>
			</div>
  
</div>
13 May 2009, 1:23 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Getting the 'click for larger image' back

It needs to be just before the closing </a> tags ...

Once upon a time, I believe that looked like this:

<?php require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE)); ?> 
<div id="productMainImage" class="centeredContent back">
<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) . '<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>
</div>
13 May 2009, 2:32 PM
#5
aly22 avatar

aly22

Zen Follower

Join Date:
Feb 2008
Posts:
174
Plugin Contributions:
0

Re: Getting the 'click for larger image' back

Thank you thank you thank you!!