Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing the click to enlarge text & picture


webmaster2

Recommended Posts

Posted

Hey Guys,

 

Sorry to bother you again, but I am stuck trying to remove the "click to enlarge" text and picture. Now, I've been reading the documentation and found one that tells how to remove it, but the only thing is, is that Im using STS.

 

It tells me to delete or comment out a line(s) in the product_info.php file, funny thing is, 99% of the line I need to delete is not even there. The only thing thats there that I recognized is the "click to enlarge" link, which I successfully removed.

 

However, my pic is still showing. I'm trying to delete it because I cannot seem to get the click to large thing to work. Unless someone send me the thread that explains it very good.

 

Thanks

"Sometimes doing the right thing isn't doing the right thing"

Posted

The click to enlarge feature is pretty straight forward, you upload an image that is around 400x400px for your product image......in the areas where it is supposed to be a smaller image, the cart resizes it to 80x80, or whatever size you have it set for in your configuration/images in admin.....when you click to enlarge, the picture shows in its real size.

soooo... if you insert images that are 80x80px....when you click to enlarge, all your gonna get is a 80x80px image :)

Posted

For the STS system you need to go into your folder or where ever your templates are kept and open up the product_info.php.html for the products. On the new STS3 it is in your catalog/includes/sts_templates/yourfoldername. Not sure on the other versions but they all should have something like

<table align="right" border="0" cellpadding="2" cellspacing="0">
       <tbody>
         <tr> 
           <td class="smallText" align="center"><a href="javascript:popupWindow('http://sts.diamondsea.com/sts3/popup_image.php?pID=$productsid')">$imagesmall<br>
             Click to enlarge</a></td>
         </tr>
       </tbody>
     </table>

Which is the entire table holding the image and the text link.

 

The code on a page without the STS is

<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']) . '" target="_blank">' . 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>

That is the image and the click to enlarge link.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Archived

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

×
×
  • Create New...