Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Feb 2008
    Posts
    569
    Plugin Contributions
    0

    Default manufacture logo not showing

    1.3.8a I have uploaded my manufactures logos but i would like them to show when someone uses the manufacture sidebox and selects the manufacture, for the image and name to show on the top. Tried other post couldn't get it to work. thanks

  2. #2
    Join Date
    Mar 2006
    Location
    Fresno, California
    Posts
    620
    Plugin Contributions
    0

    Default Re: manufacture logo not showing


  3. #3
    Join Date
    Feb 2008
    Posts
    569
    Plugin Contributions
    0

    Default Re: manufacture logo not showing

    No I have them all uploaded.

    Where I want them to be listed is when a customer click on the "Manufacture" Side box and select the manufacture then it gives all the products under that manufacture up on the right of the page or next to the "Name that it already shows now". Click here to see

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

    Default Re: manufacture logo not showing

    I do not use the SEO add-on that you are using, but you should be able to add a function to get the manufacturers_image such as:
    Code:
      function zen_get_manufacturers_image($manufacturers_id) {
        global $db;
    
        $manufacturers_query = "select m.manufacturers_image
                          from " . TABLE_MANUFACTURERS . " m
                          where m.manufacturers_id = '" . $manufacturers_id . "'";
    
        $manufacturers =$db->Execute($manufacturers_query);
    
        return $manufacturers->fields['manufacturers_image'];
      }
    From that, when there is a manufacturers_id you could then display the image where you need it ...
    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!

  5. #5
    Join Date
    Feb 2008
    Posts
    569
    Plugin Contributions
    0

    Default Re: manufacture logo not showing

    Thanks Ajeg where would I add this code in the product_display_defult.php?

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

    Default Re: manufacture logo not showing

    I added it to the:
    /includes/functions/extra_functions

    creating a file like:
    my_extra_functions.php

    That is a self loading directory and loads after the functions_general.php file ...
    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!

  7. #7
    Join Date
    Feb 2008
    Posts
    569
    Plugin Contributions
    0

    Default Re: manufacture logo not showing

    I get: function zen_get_manufacturers_image($manufacturers_id) { global $db; $manufacturers_query = "select m.manufacturers_image from " . TABLE_MANUFACTURERS . " m where m.manufacturers_id = '" . $manufacturers_id . "'"; $manufacturers =$db->Execute($manufacturers_query); return $manufacturers->fields['manufacturers_image']; }

    Whole page enlarged, and error message on top ^^

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

    Default Re: manufacture logo not showing

    You would need to write the file, such as:
    /includes/functions/extra_functions/my_extra_functions.php

    with the opening and closing php brackets, for example:

    Code:
    <?php
    // my extra functions
    
    // get manufacturers_image
      function zen_get_manufacturers_image($manufacturers_id) {
        global $db;
    
        $manufacturers_query = "select m.manufacturers_image
                          from " . TABLE_MANUFACTURERS . " m
                          where m.manufacturers_id = '" . $manufacturers_id . "'";
    
        $manufacturers =$db->Execute($manufacturers_query);
    
        return $manufacturers->fields['manufacturers_image'];
      }
    ?>
    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!

  9. #9
    Join Date
    Feb 2008
    Posts
    569
    Plugin Contributions
    0

    Default Re: manufacture logo not showing

    I inserted that code, nothing changed no manufacture image is showing up: take a look here

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

    Default Re: manufacture logo not showing

    All that code will do is get the "name" of the image file when passed a valid manufactuers_id ...

    You will need to add additional code to where you want this displayed ...
    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!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v153 Logo not showing
    By tegz1 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 29 Oct 2014, 02:13 AM
  2. v151 manufacture logo on product info page
    By 100asa in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 11 Sep 2014, 07:39 PM
  3. displaying manufacture logo
    By kitcorsa in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 6 Dec 2009, 10:50 PM
  4. Showing Manufacture Info on Home Page
    By fastdc5 in forum Basic Configuration
    Replies: 0
    Last Post: 13 Apr 2009, 03:58 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