Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2005
    Posts
    23
    Plugin Contributions
    0

    Default Manufacturer Logo in product listing?

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

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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:
    PHP Code:
            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 ...
    Last edited by Ajeh; 27 Jun 2006 at 07:16 PM.
    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!

  3. #3
    Join Date
    Oct 2005
    Posts
    23
    Plugin Contributions
    0

    Default Re: Manufacturer Logo in product listing?

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

  4. #4
    Join Date
    Oct 2005
    Posts
    23
    Plugin Contributions
    0

    Default 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!

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Manufacturer Logo in product listing?

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

    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!

  6. #6
    Join Date
    Oct 2005
    Posts
    23
    Plugin Contributions
    0

    Default Re: Manufacturer Logo in product listing?

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

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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!

 

 

Similar Threads

  1. Manufacturer product listing
    By Mistica in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 Oct 2009, 08:03 PM
  2. Adding Manufacturer Logo on top of a product listing
    By EC Junior in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 23 Feb 2008, 10:43 AM
  3. Manufacturer on Product Listing Page.
    By paperzombie in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Nov 2007, 04:40 AM
  4. manufacturer link and logo on product info page
    By 100asa in forum General Questions
    Replies: 4
    Last Post: 9 Feb 2007, 04:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg