Forums / General Questions / Manufacturer Logo in product listing?

Manufacturer Logo in product listing?

Locked

Started by anthonyc on 26 Jun 2006, 1:34 PM · Views: 2,530

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
26 Jun 2006, 1:34 PM
#1
anthonyc avatar

anthonyc

New Zenner

Join Date:
Oct 2005
Posts:
19
Plugin Contributions:
0

Manufacturer Logo in product listing?

Is there a way to put the manufacturer's logo in the product listings instead of the text names?

26 Jun 2006, 5:03 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Manufacturer Logo in product listing?

To add the manufacturers_image to the /includes/modules/product_listing.php ...

Copy the file to your overrides directory:
/includes/modules/your_template_dir/product_listing.php

And around lines 102 - 105 ...

Change the case statement to read:

        case 'PRODUCT_LIST_MANUFACTURER':
        $lc_align = '';
        $lc_text = '<a href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing->fields['manufacturers_id']) . '">' . zen_image(DIR_WS_IMAGES . zen_get_products_manufacturers_image($listing->fields['products_id'])) . '<br>' . $listing->fields['manufacturers_name'] . '</a>';
        break;

This shows both manufacturers_image and name ... and you can adjust accordingly ...

NOTE: edited for incorrect field ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

27 Jun 2006, 1:23 PM
#3
anthonyc avatar

anthonyc

New Zenner

Join Date:
Oct 2005
Posts:
19
Plugin Contributions:
0

Re: Manufacturer Logo in product listing?

For some reason its giving me the "nopic.gif" instead of the logos.

27 Jun 2006, 5:00 PM
#4
anthonyc avatar

anthonyc

New Zenner

Join Date:
Oct 2005
Posts:
19
Plugin Contributions:
0

Re: Manufacturer Logo in product listing?

Ok Changed:
zen_get_products_manufacturers_image($listing->fields['manufacturers_id']))
To:
zen_get_products_manufacturers_image($listing->fields['products_id']))

Looks like that worked now I just need to make the logo smaller.

Thanks Ajeh!

27 Jun 2006, 6:17 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Manufacturer Logo in product listing?

Silly silly me ... must need more coffee ... :blink:

Thanks for the catch!

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

27 Jun 2006, 6:28 PM
#6
anthonyc avatar

anthonyc

New Zenner

Join Date:
Oct 2005
Posts:
19
Plugin Contributions:
0

Re: Manufacturer Logo in product listing?

Any idea how to resize the logos smaller, or to use a small version of the logo?

27 Jun 2006, 6:40 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Manufacturer Logo in product listing?

You could peek at the function for the image and pass different paramaters for the width and height ...

Or, you would need to get trickie and add an additional peice to the path to the image such as have it peek in a subdirectory or something along the lines of how the /images
/images/medium
/images/large

work for regular images ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!