osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Click to Enlarge?

This is a discussion on Click to Enlarge? within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; When i click on the link under the product photo that says "Click to Enlarge" it launches a ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 10-20-2002, 01:50 PM
sheikyerbouti's Avatar
Member
 
Join Date: Oct 2002
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
sheikyerbouti
Default Click to Enlarge?

When i click on the link under the product photo that says "Click to Enlarge" it launches a new window but shows the product in the same size as the original. I think i heard about a contribution which would make it possible to actually view enlarged images, but what i really want to do is just remove the "Click to Enlarge" link altogether. I don't recall seeing anything about this. Can someone help me with this simple (i hope) subtraction from the code?

Thanks,
pete
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 10-20-2002, 08:58 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 9,573
Thanks: 65
Thanked 279 Times in 265 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

It is pretty easy:

In the file product_info.php go to roughly line 102-104. See below:

<tr>
<td align="center" class="smallText">]<a href="javascriptopupImageWindow('<?php echo tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info_values['products_id']); ?>')"><?php echo tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], $product_info_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?><br> <?php echo TEXT_CLICK_TO_ENLARGE; ?></a></td>
</tr>

Delete the text that I have highlighted above.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 10-21-2002, 11:35 AM
sheikyerbouti's Avatar
Member
 
Join Date: Oct 2002
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
sheikyerbouti
Default

Thank you very much for responding to ALL my questions. Have a great day. This site and the Guide both ROCK!!!

-pete
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 10-21-2002, 11:52 AM
sheikyerbouti's Avatar
Member
 
Join Date: Oct 2002
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
sheikyerbouti
Default

Actually, my code is slightly different than what you show. Could you help me figure out which exact pieces i delete from the following?
Thanks again.
-pete


<tr>
<td align="center" class="smallText">
<script language="javascript"><!--
document.write('<?php echo '<a href="javascriptopupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info_values['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], addslashes($product_info_values['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
//--></script>
<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info_values['products_image']) . '">' . tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], $product_info_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</noscript>
</td>
</tr>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 10-21-2002, 02:53 PM
Anonymous
Guest
 
Posts: n/a
Default

I dont have your actual code, but I think this will work. See the sections marked in bold and remove them. I havent actually tested this, so make sure to backup your original file. Good luck...



<tr>
<td align="center" class="smallText">
<script language="javascript"><!--
document.write('<?php echo '<a href="javascriptopupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info_values['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], addslashes($product_info_values['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>' ; ?>');
//--></script>
<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info_values['products_image']) . '">' . tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], $product_info_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</noscript>
</td>
</tr>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 10-21-2002, 03:18 PM
sheikyerbouti's Avatar
Member
 
Join Date: Oct 2002
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
sheikyerbouti
Default

well, that's close. i finally got it to work and here's the code. you were right on the first part, but you still need to remove the anchor code from the second section.

-pete


<tr>
<td align="center" class="smallText">
<script language="javascript"><!--
document.write('<?php echo tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], addslashes($product_info_values['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?>');
//--></script>
<noscript>
<?php echo tep_image(DIR_WS_IMAGES . $product_info_values['products_image'], $product_info_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?>
</noscript>
</td>
</tr>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
'Click to Enlarge' is missing? danhosts osCMax v2 Installation issues 1 10-04-2006 03:37 AM
Click To Enlarge Image heaven osCommerce 2.2 Installation Help 1 02-07-2006 12:42 PM
click to enlarge crujones osCMax v1.7 Discussion 7 04-25-2004 02:37 PM
Click to Enlarge msmull osCMax v1.7 Discussion 1 03-22-2004 09:19 AM
Why does it say click to enlarge when it doesn't? Anonymous osCommerce 2.2 Modification Help 1 11-22-2002 06:25 PM


All times are GMT -8. The time now is 12:05 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax