Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2010
    Posts
    10
    Plugin Contributions
    0

    Default Adding Manufacturer to products listing display.

    Using Glacial Age Template on Zen Cart v1.3.9d
    I have searched the forums and the internet to no avail as of yet.
    I would like to be able to display the Manufacturers Logo (Not just the name) on the product listing pages. (Search Results, Categories, etc.)
    Currently it does it for the Individual Item Display only.. not the listing pages.

    I have begun digging into the code and think product_listing.php around line 98 is where I would do this... but I am not quite sure what to do.

    Any suggestions?

    Thanks.
    Last edited by yourguide; 4 Aug 2010 at 08:14 PM.

  2. #2
    Join Date
    Apr 2010
    Posts
    10
    Plugin Contributions
    0

    Idea or Suggestion Re: Adding Manufacturer to products listing display.

    ANY help would be greatly appreciated.
    I know the code is in there somewhere to display the logo... just not sure where.
    Thanks.

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

    Default Re: Adding Manufacturer to products listing display.

    In this section of the code, you know the manufacturers_id and manufacturers_name but not the manufacturers_image ...
    Code:
            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 could use a function to obtain the manufacturers_image in this section with:
    function zen_get_products_manufacturers_image($product_id)

    The $products_id can be referenced with:
    $listing->fields['products_id']

    and use something like:
    zen_image(DIR_WS_IMAGES . zen_get_products_manufacturers_image($listing->fields['products_id']
    ), $listing->fields['manufacturers_name'])

    Now if you are not displaying the manufactuers_name, you can add that code for the image in any column that you are using, such as the products_name etc.
    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: v1.5.5]
    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!

  4. #4
    Join Date
    Apr 2010
    Posts
    10
    Plugin Contributions
    0

    Default Re: Adding Manufacturer to products listing display.

    Thank you so much for steering me in the right direction!

 

 

Similar Threads

  1. display manufacturer image in product listing?
    By familynow in forum Templates, Stylesheets, Page Layout
    Replies: 51
    Last Post: 2 Jan 2016, 11:49 PM
  2. Display manufacturer image on top of product index listing page
    By Thannaree in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 4 Oct 2012, 12:49 PM
  3. Adding manufacturer's logo to products
    By jenniesummitreks in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 27 May 2009, 06:38 PM
  4. 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
  5. making New Products Listing look like Category/Manufacturer Listing ??
    By simplifiedmedia in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 May 2006, 10:43 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR