In this section of the code, you know the manufacturers_id and manufacturers_name but not the manufacturers_image ...
Code:
case 'PRODUCT_LIST_MANUFACTURER':
$lc_align = '';
$lc_text = '<a href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing->fields['manufacturers_id']) . '">' . $listing->fields['manufacturers_name'] . '</a>';
break;
You could use a function to obtain the manufacturers_image in this section with:
function zen_get_products_manufacturers_image($product_id)
The $products_id can be referenced with:
$listing->fields['products_id']
and use something like:
zen_image(DIR_WS_IMAGES . zen_get_products_manufacturers_image($listing->fields['products_id']
), $listing->fields['manufacturers_name'])
Now if you are not displaying the manufactuers_name, you can add that code for the image in any column that you are using, such as the products_name etc.
Bookmarks