/*=======================================================================*\
|| #################### //-- SCRIPT INFO --// ########################## ||
|| # Script name: pop-up image in product listing install
|| # Contribution: pop-image in product listing
|| # Version: 1.0
|| # Date: 22 January 2005
|| # Coded and released in reply to this thread:
|| # http://forums.oscommerce.com/index.php?showtopic=132112
|| # ------------------------------------------------------------------ # ||
|| #################### //-- COPYRIGHT INFO --// ######################## ||
|| # Copyright (C) 2005 Bobby Easland # ||
|| # Internet moniker: Chemo # ||
|| # Contact: chemo@mesoimpact.com # ||
|| # Commercial Site: http://gigabyte-hosting.com/ # ||
|| # GPL Dev Server: http://mesoimpact.com/ # ||
|| # # ||
|| # This script is free software; you can redistribute it and/or # ||
|| # modify it under the terms of the GNU General Public License # ||
|| # as published by the Free Software Foundation; either version 2 # ||
|| # of the License, or (at your option) any later version. # ||
|| # # ||
|| # This script is distributed in the hope that it will be useful, # ||
|| # but WITHOUT ANY WARRANTY; without even the implied warranty of # ||
|| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # ||
|| # GNU General Public License for more details. # ||
|| # # ||
|| # Script is intended to be used with: # ||
|| # osCommerce, Open Source E-Commerce Solutions # ||
|| # http://www.oscommerce.com # ||
|| # Copyright (c) 2003 osCommerce # ||
|| ###################################################################### ||
\*========================================================================*/
<======== INSTALL DIRECTIONS ========>
STEP 1
In index.php paste this code in your document head:
=======================================================
=======================================================
STEP 2
In includes/modules/product_listing.php find this code:
=======================================================
case 'PRODUCT_LIST_IMAGE':
$lc_align = 'center';
if (isset($HTTP_GET_VARS['manufacturers_id'])) {
$lc_text = '' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '';
} else {
$lc_text = ' ' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . ' ';
}
break;
=======================================================
and replace with this code:
=======================================================
case 'PRODUCT_LIST_IMAGE':
$lc_align = 'center';
if (isset($HTTP_GET_VARS['manufacturers_id'])) {
$lc_text = '' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '';
} else {
$lc_text = '
';
}
break;
=======================================================
STEP 3
Save both files. Wasn't that easy?
- Chemo