Results 1 to 10 of 41

Hybrid View

  1. #1
    Join Date
    Nov 2006
    Posts
    88
    Plugin Contributions
    0

    Default Displaying manufacturers image on product page

    Hi all,

    Looking to display the manufacturers logo on my product info page.

    I've copied the following code into my tpl_product_info_display.php file, but it just brings up the default "No Picture Available" image.

    Code:
    <?php 
    echo zen_image(DIR_WS_IMAGES . $manufacturer_info_sidebox->fields['manufacturers_image'], $manufacturer_info_sidebox->fields['manufacturers_name']);
    ?>
    I've tried copying the image into the images directory, the images/manufacturers directory, tried various filenames but still no joy.

    Help!

  2. #2
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Displaying manufacturers image on product page

    Probably need a bit more code to determine WHAT image to display - so it needs to know what PRODUCT by what MANUFACTURER is on display before it can find the image (as the PRODUCT is linked to the manufacturer).

    Have you looked at:

    includes/modules/sideboxes/manufacturer_info.php

  3. #3
    Join Date
    Nov 2006
    Posts
    88
    Plugin Contributions
    0

    Default Re: Displaying manufacturers image on product page

    Do you know what bits i'd need to include in my product_info_display.php file?

  4. #4
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Displaying manufacturers image on product page

    I know more about neurosurgery than I do about PHP - and I never went to medical school.

    You'll need a php guru to help you here.

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

    Default Re: Displaying manufacturers image on product page

    For displaying the manufacturer's image on the product_info page, try something like this:
    Code:
    <?php echo 'I see the manufacturers image: ' . zen_image(DIR_WS_IMAGES .  zen_get_products_manufacturers_image($product_info->fields['manufacturers_id'])); ?>
    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!]
    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
    Nov 2006
    Posts
    88
    Plugin Contributions
    0

    Default Re: Displaying manufacturers image on product page

    Hi Ajeh,

    With that I get the text "I see the manufacturers image" displaying and also the No Picture Available placeholder.

 

 

Similar Threads

  1. How to add manufacturers url to the manufacturers image
    By suedouglas in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Jan 2016, 04:19 PM
  2. v150 Manufacturers Product image size
    By Dak-TS in forum General Questions
    Replies: 8
    Last Post: 5 Jan 2015, 01:46 PM
  3. Help displaying manufacturers image
    By kconklin in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 19 May 2010, 09:52 PM
  4. link ez-page to manufacturers image
    By chelgeson in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 27 Apr 2009, 08:05 PM

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