PDA

View Full Version : OSC Plus Highslide



michael_s
01-30-2008, 01:34 PM
This integrate highslide with your product listing images to
pop them up into the fancy highslide boxes dynamically.

Special thanks to Torstien Honsi, the creator of highslide.


step 1:
download and the latest version of highslide.
Please note. Highslide JS is not free for commercial use.
http://vikjavev.no/highslide/download.php

step 2:
copy the highslide folder to your catalog directory

step 3:
open up catalog/index.php
find:



replace with:





step 4:
open catalog/includes/modules/product_listing.php
find:
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) . ' (http://www.oscmax.com/forums/' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . ')';
} else {
$lc_text = ' ' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . ' (http://www.oscmax.com/forums/' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . ') ';
}
break;

replace with:
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) . ' (http://www.oscmax.com/forums/' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name']) . ')';
} else {
$lc_text = '' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . ' (http://www.oscmax.com/forums/' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name']) . ') ';
}
break;

thats it!

enjoy,
brad
[email protected]
http://phaseonemedia.com


More... (http://addons.oscommerce.com/info/5709)