Zen Cart Logo
Forums / General Questions / Manufacturer Images

Manufacturer Images

Views: 564

Results 1 to 6 of 6
17 Feb 2011, 4:15 PM
#1
everayla avatar

everayla

New Zenner

Join Date:
Feb 2011
Location:
Durango, CO
Posts:
21
Plugin Contributions:
0

Manufacturer Images

Hello everyone,
We are doing some updating on our site, trying to make it look a bit better everyday. We have uploaded all of our Manufacturer images but we can not figure out how to place them on the site. When you search and item in our search bar it brings up the item, price, and manufacturer. But it only shows the name of the manufacturer and we want it to show the picture. An example is located at http://www.everayla.com/index.php?main_page=advanced_search_result&search_in_description=1&keyword=55700 . Does anyone know how to get it to show the image where the manufacturer name is?
Thank you so much,
Everayla Outdoors
https://www.everayla.com

17 Feb 2011, 5:58 PM
#2
everayla avatar

everayla

New Zenner

Join Date:
Feb 2011
Location:
Durango, CO
Posts:
21
Plugin Contributions:
0

Re: Manufacturer Images

Anyone?

17 Feb 2011, 7:01 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Manufacturer Images

Admin > Catalog > Manufacturers > Edit Manufacturer, and browse to the image or select it on the server.

17 Feb 2011, 7:20 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Manufacturer Images

Note that the product listing is not built to display the manufacturer image in any case, just the name. You would have to customize the PHP code in /includes/modules/your_template/product_listing.php and possibly another file to get this functionality.

17 Feb 2011, 7:49 PM
#5
everayla avatar

everayla

New Zenner

Join Date:
Feb 2011
Location:
Durango, CO
Posts:
21
Plugin Contributions:
0

Re: Manufacturer Images

Thank you gjh42! I guess we will have to look into the PHP code because we do currently have the images uploaded but they are not showing because we haven't customized anything. So once again thank you very much.
Everayla Outdoors

17 Feb 2011, 8:14 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Manufacturer Images

The stock version of product_listing.php has the output building code around line 99:```php
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 would have to get the image filename/location into something like $listing->fields['manufacturers_image'], by modifying the SQL select statement in a previous file, probably /includes/modules/pages/index/main_template_vars.php (no override available).