If this is your first visit, check our documentation. To post, register or login.
Forums / Templates, Stylesheets, Page Layout / Display manufacturer image on top of product index listing page

Display manufacturer image on top of product index listing page

Started by thannaree on 4 Oct 2012, 11:49 AM · Views: 3,284

Results 1 to 1 of 1
4 Oct 2012, 11:49 AM
#1
thannaree avatar

thannaree

Zen Follower

Join Date:
Dec 2010
Location:
Thailand
Posts:
304
Plugin Contributions:
1

Display manufacturer image on top of product index listing page

I'm trying and display the manufacturer image on top of the product index listing page, just below the manufacturer name.

I have inserted the following code* just below the categories_image part in tpl_index_product_list.php

<?php // manufacturers image
if (isset($_GET['manufacturers_id']) && $_GET['manufacturers_id'] > 0) { ?>
<div id="categoryImgListing" class="categoryImg"><?php echo zen_image(DIR_WS_IMAGES . $image, $breadcrumb->last()); ?></div>
<?php
}
?> 

But it just shows the NO PICTURE AVAILABLE image. Perhaps it's trying and pull the image from the image folder (instead of the manufacturers folder)? I've tried with $manufacturers_image instead of $image but to no avail.

Do you know how I could do this?

*It was posted by Kuroi on the thread below that is now closed

http://www.zen-cart.com/showthread.php?85652-Adding-Manufacturer-Logo-on-top-of-a-product-listing