New Zenner
- Join Date:
- May 2007
- Posts:
- 60
- Plugin Contributions:
- 0
How to show manufacturer image and name with link?
hey guys
in my online store, when listing products, you can see the manufacturer image, as you can see here:
http://www.academyfloor.com/index.php?main_page=index&cPath=24
Someone helped me with that a few months ago... don't remember his name but 10x..
anyway, i want to show the manufucturer name at the bottom of the picture (at the center of course) with the link to the manufucturer products, like it was before.
I've got both of the codes, just can't combine between them... i keep getting error messages...
The first code, the i have right now, showing the manufacturer image is:
case 'PRODUCT_LIST_MANUFACTURER':
$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(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>';
} else {
$lc_text = '<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>';
}
}
*/
$lc_text = zen_image(DIR_WS_IMAGES . zen_get_products_manufacturers_image($listing->fields['products_id']));
break;
The second code, the original, the one that shows the manufucturer name with the link is:
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;
Please help... thank u