I too have the same requirement as rottijoe - you can see where I have gotten so far at: http://www.monbijouusa.com/shop/inde...ndex&cPath=1_2
I have managed to get a pop up window to work on the image but I haven't figured out how to control the pop up image or the size and look of the pop up window.
PHP Code:
case 'PRODUCT_LIST_IMAGE':
$lc_align = 'center';
if ($listing->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) {
$lc_text = '';
} else {
if (isset($_GET['manufacturers_id'])) {
$lc_text = '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $listing->fields['products_id']) . '" target="_blank">' . zen_image(DIR_WS_IMAGES . $listing->fields['products_image'], $listing->fields['products_name'], IMAGE_PRODUCT_LISTING_WIDTH, IMAGE_PRODUCT_LISTING_HEIGHT, 'class="listingProductImage"') . '</a>';
} else {
$lc_text = '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $listing->fields['products_id']) . '" target="_blank">' . zen_image(DIR_WS_IMAGES . $listing->fields['products_image'], $listing->fields['products_name'], IMAGE_PRODUCT_LISTING_WIDTH, IMAGE_PRODUCT_LISTING_HEIGHT, 'class="listingProductImage"') . '</a>';
}
}
break;
I took the href link from tpl_modules_main_product_image.php
I think if the javascript from this page can be modified for use in product_listing.php the pop up would work properly - but I can't get this script to work:
PHP Code:
<script language="javascript" type="text/javascript"><!--
document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '\\\')">' . zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>'; ?>');
//--></script>
Have to go to sleep now - I am hoping a zen good fairy can finish what I have started.