Search  
   
Browse by Category
 
Netfirms 24/7 Support .: E-COMMERCE .: Netfirms Commerce Pro .: Configurations and Customizations .: How do I hide or disable the "Click to enlarge images" feature in my Netfirms Commerce Pro store?

How do I hide or disable the "Click to enlarge images" feature in my Netfirms Commerce Pro store?

To disable the Click to enlarge images within your Netfirms Commerce Pro store, please follow these steps:


1. Using an FTP tool (eg. Filezilla ) download and open (using Notepad or some other text editor) the product_info.php (located within /catalog/)

2. Find the following line of code:

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>'; ?>');

3. Replace the above line with the following line of code:

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

4. Find the following line of code:

<?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>'; ?>

5. Replace the above line with the following line of code:

<?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"'); ?>

6. Upload the revised product_info.php back to ../catalog/

This document is FAQ479.


How helpful was this article to you?


.: Powered by Lore 1.5.6
Visit Netfirms.com Web Hosting | Copyright © 1998 - 2009 Netfirms, Inc. All Rights Reserved.