Javascript pop up works.
To see on my site, go to http://www.monbijouusa.com/shop/index.php?main_page=index&cPath=1_2 - click on the picture for Afreeka #MN039 (only prod with a large image at the moment).
How I did it ( I am using grid layout product listing):
In includes/modules/CUSTOM/product_listing.php around line 207:
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="javascript:popupWindow(\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $listing->fields['products_id']) . '\')">' . 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="javascript:popupWindow(\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $listing->fields['products_id']) . '\')">' . 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;
Then I copied the javascript file jscript_main.php from
includes/modules/pages/product_info/
to
includes/modules/pages/index/
I didn't do anything to jscript_main.php - just copied it from one folder to another.
I hope I am telling you everything - but considering it's 5:45am and I haven't had any sleep I may have missed something.
Once I decide whether to eat breakfast or sleep - I am going to do the same to the text link. If I find I've missed anything I'll let you know.
:clap: :clap: :clap: