It's actually not in the template file and is PHP. If you are going to try this please BACKUP the two files that we edited:
1. Copy your includes/modules/product_listing.php into includes/modules/YOURTEMPLATENAME/product_listing.php (where YOURTEMPLATENAME is your template override folder)
We then edited the file in our template override folder. on line 217 from the if command to the break command. Heres what we changed it to:
PHP Code:
if (isset($_GET['manufacturers_id'])) {
$lc_text = '<table class="listingimg"><tr><td valign="middle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $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></td></tr></table>';
} else {
$lc_text = '<table class="listingimg"><tr><td valign="middle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $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></td></tr></table>';
}
}
break;
2. We gave the table a class name "listingimg" so we could mess around with the CSS. In our stylesheet.css we then added the following:
HTML Code:
.listingimg{
text-align:center;
margin-top:10px;
}
.listingimg td{
height:160px;
width:181px;
}
.listingimg img{
padding:0;
margin:0;
}
Where height:160px was slightly higher than our image height. Width will depend on the width of each image column, so you can play around with it to see what fits your website.