Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 36
  1. #11
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    66,825
    Plugin Contributions
    6

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

    Take the name out of the code:
    Code:
    $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>';
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

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

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

    Interesting...That worked perfectly for what I wanted except that now in the product_info I no longer have the manufacturer listed ie Manufactured by: is blank.

    Here's the code[1] I'm using now...Not clear on how/why this would also strip the display from another page. I'm inclined to think that in searching for my above solution I may have been slightly over-zealous in removing things with the term "manufacturer name" perhaps?

    ref.

    // BoF DISPLAY MANUFACTURER IMAGES
    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']), $listing->fields['manufacturers_name']) . '</a>';
    break;
    //EoF DISPLAY MANUFACTURER IMAGES

  3. #13
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    66,825
    Plugin Contributions
    6

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

    The change to that file should only affect the listings ...

    If you changed other files, you need to look and see what changes you made and adjust them accordingly ...
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

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

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

    Quote Originally Posted by Ajeh View Post
    The change to that file should only affect the listings ...

    If you changed other files, you need to look and see what changes you made and adjust them accordingly ...
    Thought so...Just wanted to be certain. So here's[1] where I 'tinkered' in product_info_display.php

    ref.
    [1] <!--bof Product details list -->
    <?php if ( (($flag_show_product_info_model == 1 and $products_model != '') or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) ) { ?>
    <ul>
    <?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?>
    <?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT . $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>' : '') . "\n"; ?>
    <?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?>
    <?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $chk_manufacturers_name . '</li>' : '') . "\n"; ?>
    </ul>
    <?php
    }
    ?>
    <!--eof Product details list -->

  5. #15
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    66,825
    Plugin Contributions
    6

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

    What is this suppose to be:
    $chk_manufacturers_name

    If you are testing whether or not there is a Manufacturers Name with:
    $manufacturers_name

    Why are you using a different variable for the Manufacturers Name that does not appear to exist in the code you listed?

    What happens if you change it to be:
    $manufacturers_name
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

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

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

    In comparing the above with the ZC source I'm not seeing anything different. There was one point when I attempted to add the manufacturer image to that page also and I removed that code while editing - I know always edit one thing at a time! Here's the code[1] I had in place. Perhaps that somehow enabled the displaying of the manufacturer!?

    ref.
    [1] <!--BoF display manufacturer image-->
    <?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 manufacturer image-->

  7. #17
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    66,825
    Plugin Contributions
    6

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

    That was to get the image ... and only display it if there was one ...

    What do you want to see on the product_info page?
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

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

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

    Quote Originally Posted by Ajeh View Post
    What is this suppose to be:
    $chk_manufacturers_name

    If you are testing whether or not there is a Manufacturers Name with:
    $manufacturers_name

    Why are you using a different variable for the Manufacturers Name that does not appear to exist in the code you listed?

    What happens if you change it to be:
    $manufacturers_name
    Spot on!
    details...details...details.

    Thank you!

  9. #19
    Join Date
    Aug 2011
    Location
    Near Ottawa, Ontario, Canada
    Posts
    341
    Plugin Contributions
    0

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

    Quote Originally Posted by Ajeh View Post
    That was to get the image ... and only display it if there was one ...

    What do you want to see on the product_info page?
    I pulled the plug on that because I felt it was just too much to load even-tough it looked good. I've got the manufacturer logo for branding in the product_list and only the name in the product_info I think that's the best compromise for sales/performance.

  10. #20
    Join Date
    Feb 2012
    Posts
    22
    Plugin Contributions
    0

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

    It's driving me crazy... I've edited my product_listing.php to have the manufacturer's image appear in product listing & I can't figure out why it's not showing. A product listing at site is: http://spottedsheepyarnshoppe.com/ze...products_id=37 and edit in .php is below. Please help!

    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;

 

 
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. 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
  2. Adding Manufacturer to products listing display.
    By yourguide in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 18 Aug 2010, 10:09 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
  •