Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

removing enlarge image


paganini

Recommended Posts

Is there away to the "enlarge image" feature on the cart? I just don't need it and it looks pretty unprofessional to have an "enlarge image" feature and then twhen the image pops up it is the same size as the one already shown.

 

Thanks

Cheers Todd

Link to comment
Share on other sites

The folowing should do what you want, it should work with recent 2.2CVS and 2.2MS1. Before doing anything please backup the page or pages you are modifying.

 

The change needs to be done in product_info.php. If you have not modified this file, then about line 24 you should have

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

function popupWindow(url) {

 window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizab
le=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=1
50')

}

//--></script>

 

You can either delete this or comment it out.

Then about line 90 you should have

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

document.write('<?php echo '<a href="javascript: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>

<noscript>

<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>

</noscript>

You can either delete this and replace with the following or comment it out and put the following directly below it.

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

 

This should remove the a href and the "Click to Enlarge" text.

Link to comment
Share on other sites

  • 3 weeks later...

Archived

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

×
×
  • Create New...