Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Remove "Click to enlarge" function


Daft Moniker

Recommended Posts

Posted

Hello all,

 

I would like to remove the "Click to enlarge" image and text from my product desciption(s). Where would one go to remove such a thing and is there a specific line I am looking for?

 

Thanks! :)

Posted

In product_info.php

 

Replace

 

<script language="javascript"><!--

document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');

//--></script>

 

with something like this

 

<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5" style="float:right"') . '<br>'; ?>

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted
In product_info.php

 

Replace

 

<script language="javascript"><!--

document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');

//--></script>

 

with something like this

 

<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5" style="float:right"') . '<br>'; ?>

 

Oh okay. Does this remove both the text AND the image? My clients don't want the small image to appear once on the product details page.

Posted
Oh okay. Does this remove both the text AND the image? My clients don't want the small image to appear once on the product details page.

 

wO0T.

 

Got it, thanks a lot! :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...