Page 1 of 6 123 ... LastLast
Results 1 to 10 of 52
  1. #1
    Join Date
    Aug 2011
    Location
    Near Ottawa, Ontario, Canada
    Posts
    321
    Plugin Contributions
    0

    Default display manufacturer image in product listing?

    I'm looking to display the manufacturer image in lieu of the manufacturer name. Has anyone done this?

    I was thinking this[1] would work but I don't know where to put it.

    ref.
    [1]
    <!--bof display manufacturer image on page-->
    <?php
    $chk_manufacturers_image = zen_get_products_manufacturers_image($product_info->fields['products_id']);
    echo (!empty($chk_manufacturers_image) ? zen_image(DIR_WS_IMAGES . $chk_manufacturers_image) : '');
    ?>
    <!--eof display-->

  2. #2
    Join Date
    Aug 2011
    Location
    Near Ottawa, Ontario, Canada
    Posts
    321
    Plugin Contributions
    0

    Default Re: How to display manufacturer image in product listing

    k. I think I'm a little further ahead now. Never fails, as soon as I post something I find more info on my own...Anyway.

    In ../modules/my_theme/product_listing.php I found:

    break;
    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;

    Would integrating the aforementioned code in that work?

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: How to display manufacturer image in product listing?


  4. #4
    Join Date
    Aug 2011
    Location
    Near Ottawa, Ontario, Canada
    Posts
    321
    Plugin Contributions
    0

    Default Re: How to display manufacturer image in product listing?

    Those are both for the manufacturer sidebox. I'm looking for the product listing page. When you enable Display Product Manufacturer Name it adds a column to the product listing page. I'd really like to add the manufacturers image in there. Instead of the manufacturers name.

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

    Default Re: How to display manufacturer image in product listing?

    You could customize with your templates and overrides the module:
    /includes/modules/product_listing.php

    and add the code:
    Code:
    zen_image(DIR_WS_IMAGES . zen_get_products_manufacturers_image($listing->fields['products_id']), $listing->fields['manufacturers_name'])
    where you want the image to show ...

    Example: for the Manufacturers Name you can add it to:
    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'] . '<br>' . zen_image(DIR_WS_IMAGES . zen_get_products_manufacturers_image($listing->fields['products_id']), $listing->fields['manufacturers_name']) . '</a>';
            break;
    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!

  6. #6
    Join Date
    Aug 2011
    Location
    Near Ottawa, Ontario, Canada
    Posts
    321
    Plugin Contributions
    0

    Default Re: How to display manufacturer image in product listing?

    Hm. I don't understand how to implement that.

    Am I replacing this:

    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;

    w/this:

    zen_image(DIR_WS_IMAGES . zen_get_products_manufacturers_image($listing->fields['products_id']), $listing->fields['manufacturers_name'])
    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'] . '<br>' . zen_image(DIR_WS_IMAGES . zen_get_products_manufacturers_image($listing->fields['products_id']), $listing->fields['manufacturers_name']) . '</a>';
    break;

    Or am I putting the image statement somewhere else?

  7. #7
    Join Date
    Aug 2011
    Location
    Near Ottawa, Ontario, Canada
    Posts
    321
    Plugin Contributions
    0

    Default Re: How to display manufacturer image in product listing?

    Nevermind. Got it!

    Didn't realize you had already broken it down for me.

  8. #8
    Join Date
    Aug 2011
    Location
    Near Ottawa, Ontario, Canada
    Posts
    321
    Plugin Contributions
    0

    Default Re: How to display manufacturer image in product listing?

    oh, and...Thank you! :)

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

    Default Re: How to display manufacturer image in product listing?

    You are most welcome and thanks for the update that this is now working for you ...
    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!

  10. #10
    Join Date
    Aug 2011
    Location
    Near Ottawa, Ontario, Canada
    Posts
    321
    Plugin Contributions
    0

    Default Re: How to display manufacturer image in product listing?

    Now that time has passed I'm finding I don't fancy the manufacturer name AND the image.

    How do I strip the name and keep the image?

 

 
Page 1 of 6 123 ... LastLast

Similar Threads

  1. 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
  2. Manufacturer image in product listing admin setting
    By familynow in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 28 Nov 2011, 07:03 PM
  3. Manufacturer Image in Product Display
    By Fusion5 in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 27 Dec 2009, 01:43 AM
  4. Display Product Manufacturer Image
    By NullMind in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 30 Aug 2007, 10:18 PM
  5. Display Product Manufacturer Image
    By Svanis in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 4 Jun 2006, 04:39 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