Results 1 to 9 of 9
  1. #1
    Join Date
    Jan 2008
    Posts
    5
    Plugin Contributions
    0

    Default Adding Manufacturer Logo on top of a product listing

    Hi everyone,
    I am wondering if anyone knows how to add the manufacturer's logo on top of the all product listings.

  2. #2
    Join Date
    Oct 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: Adding Manufacturer Logo on top of a product listing

    I would also like to know the answer to this.

    Here is an example of what I'm looking for:
    http://www.scrapbookersplayground.co...ain_page=index

    Notice the logo for the designer at the top of the product listing.

    Thanks for any help you can give!

  3. #3
    Join Date
    Apr 2007
    Posts
    38
    Plugin Contributions
    0

    Default Re: Adding Manufacturer Logo on top of a product listing

    Find this file:
    includes/templates/template_default/templates/tpl_index_product_list.php

    You should not modify this file directly as if you upgrade, it will be overridden. Also, by using the override system, if you make a mistake and ruin everything, you can delete your file, and it all comes good again.

    So what you need to do is save the file into includes/templates/YOUR_TEMPLATE/templates/tpl_index_product_list.php
    Now you can make the changes.

    On line 19 you should see this:
    PHP Code:
    <h1 id="productListHeading"><?php echo $breadcrumb->last(); ?></h1>
    Just before this, place a link to your image, and any text you may want. It should make it display like the example site.

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Adding Manufacturer Logo on top of a product listing

    Hold on...

    Redmond is suggesting you HARD CODE a core file. This won't do the job.

    The example site: http://www.scrapbookersplayground.com

    Is using the CATEGORY feature to display the manufacturer logo at the header. All they have done is set up "manufacturers" as "product categories", then used the inherent zencart feature to add images to the categoy descriptions.

    If you want to display the product manufacturer image then you are going to have to patch in some custom PHP code, so that the reference is called from the database (or appropriate image folder) dynamically.

    You won't achieve this with a static hard-coded line.

    (And besides... in general it's not really good practice to hard-code a php file).
    20 years a Zencart User

  5. #5
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Adding Manufacturer Logo on top of a product listing

    An alternative approach would be to use the Manufacturers Info Plus sidebox. This will show up whenever a listing is requested for a particular manufacturer.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  6. #6
    Join Date
    Apr 2007
    Posts
    38
    Plugin Contributions
    0

    Default Re: Adding Manufacturer Logo on top of a product listing

    Sorry - schoolboy is correct. I misread the post as wanting the store logo on top of all product listing...

    Interesting that you say it is not good practice to hard code a PHP file. Why is this, particularly using overrides??

  7. #7
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Adding Manufacturer Logo on top of a product listing

    I've hard-coded files in the past - and still do so, but it's generally sloppy - and in some cases, can detrimentally affect performance (like hard coded external http:// references, when the system defaults to https:// - you'll get a IE warning message every time a visitor click a link in https://). Also, using multiple languages can be affected.

    It's far better practice to build references to other elements, such as hyperlinks etc - either as defines in other php pages or the database.
    20 years a Zencart User

  8. #8
    Join Date
    Feb 2007
    Posts
    159
    Plugin Contributions
    0

    Default Re: Adding Manufacturer Logo on top of a product listing

    Is it too late to chime in with a question?

    Can you exchange the manufacturer's NAME= 'productListHeading' for an image?

    I would like to do this if possible. In other words I want to exchange the font for an image of a font of my choice.

    Beth-Katherine

  9. #9
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Adding Manufacturer Logo on top of a product listing

    As an answer to the question that kicked this thread off, it turns out that most of the work has already been done for you by Zen Cart. It's just not actually used in practise. Over-riding the tpl_index_product_list.php with one that adds the following immediately after the section that generates the category image should give the desired effect.
    PHP Code:
    <?php // manufacturers image
    if (isset($_GET['manufacturers_id']) && $_GET['manufacturers_id'] > 0) { ?>
    <div id="categoryImgListing" class="categoryImg"><?php echo zen_image(DIR_WS_IMAGES $image$breadcrumb->last()); ?></div>
    <?php
    }
    ?>
    Beth-Katherine

    For your specific question there are a number of possible answers depending upon where you planned to get the images from. The complexity is in recognizing the images, unless you would be happy to use the main manufacturers image for this purpose.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 

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. adding in a 'home' and 'Page Top' link to bottom of product listing page
    By Sushigal in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 28 Jun 2010, 03:09 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 a manufacturer logo & link?
    By tarynhipp in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 4 Jan 2007, 02:49 AM
  5. Manufacturer Logo in product listing?
    By AnthonyC in forum General Questions
    Replies: 6
    Last Post: 27 Jun 2006, 07:40 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