Hey, i know this isn't exactly the solution to your problem, but I spent most of the day trying to get the product listing image to popup the additional images, as it does on the product info page.
It's not the exact solution your looking for but the code might help you figure it out. I'm also working on a clothing store, so maybe if you just want to adopt this it's fine.
In tpl_modules_products_all_listing.php
PHP Code:
if (PRODUCT_ALL_LIST_IMAGE != '0') {
if ($products_all->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) {
$display_products_image = str_repeat('<br clear="all" />', substr(PRODUCT_ALL_LIST_IMAGE, 3, 1));
} else {
$display_products_image = '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $products_all->fields['products_id']) . '" target="_blank">' . '<div style="height:179px;width:170px;background-image:url(/zentemplates/images/bg2.png) ;background-position:center center;">' . '<div style="height:150px;width:150px;padding-top:19px;">' . zen_image(DIR_WS_IMAGES . $products_all->fields['products_image'], $products_all->fields['products_name'], IMAGE_PRODUCT_ALL_LISTING_WIDTH, IMAGE_PRODUCT_ALL_LISTING_HEIGHT) . '</div>' . '</div>'. '</a>' . str_repeat('<br clear="all" />', substr(PRODUCT_ALL_LIST_IMAGE, 3, 1));
}
} else {
$display_products_image = '';
}
and if you want it to work with a lightbox
PHP Code:
if (PRODUCT_ALL_LIST_IMAGE != '0') {
if ($products_all->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) {
$display_products_image = str_repeat('<br clear="all" />', substr(PRODUCT_ALL_LIST_IMAGE, 3, 1));
} else {
$display_products_image = '<a href="' . zen_lightbox(DIR_WS_IMAGES . $products_all->fields['products_image'], $products_all->fields['products_name'] , LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT) . '" rel="' . $rel . '">' . '<div style="height:179px;width:170px;background-image:url(/zentemplates/images/bg2.png) ;background-position:center center;">' . '<div style="height:150px;width:150px;padding-top:19px;">' . zen_image(DIR_WS_IMAGES . $products_all->fields['products_image'], $products_all->fields['products_name'], IMAGE_PRODUCT_ALL_LISTING_WIDTH, IMAGE_PRODUCT_ALL_LISTING_HEIGHT) . '</div>' . '</div>'. '</a>' . str_repeat('<br clear="all" />', substr(PRODUCT_ALL_LIST_IMAGE, 3, 1));
}
} else {
$display_products_image = '';
}