Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2008
    Posts
    45
    Plugin Contributions
    0

    Default How to add manufacturers url to the manufacturers image

    I currently display the manufacturers image on my product info page, In my tpl_product_info_display.php file I have the following coding which does this (I didn't particularly want to check that the image existed on the manufacturers table, because it always will, but it's the only bit of coding I could find that actually worked and displayed the 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) : '');

    ?>


    What I need to do now, is to go to the manufacturers_info.manufacturers_url when the manufacturers image is clicked on, could anyone help, please? (The manufacturers url is always present in the manufacturers_info table and the manufacturers image is also always present in the manufacturers table)

    I've found this example on the net of how to add a url to an image but because I'm picking up the image from the manufacturers table and the url from the manufacturers_info table, I'm unsure what the relevant syntax would be for my coding!

    <a href='http://www.......'><img src='/images/image_name.jpg'/></a>

    Thanks!

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: How to add manufacturers url to the manufacturers image

    You can get some clues by looking into

    includes/modules/pages/redirect/header_php.php

    and

    includes/templates/template_default/sideboxes/tpl_manufacturer_info.php

  3. #3
    Join Date
    Nov 2008
    Posts
    45
    Plugin Contributions
    0

    Default Re: How to add manufacturers url to the manufacturers image

    Thanks for your reply frank18, I'll take a look at those files.

    Thanks

  4. #4
    Join Date
    Apr 2010
    Posts
    897
    Plugin Contributions
    0

    Default Re: How to add manufacturers url to the manufacturers image

    Hi Sue,

    Did you ever solve this? And if you did, any chance you would share your solution?

    Thanks!

 

 

Similar Threads

  1. manufacturers name into the URL?
    By jennydutch in forum General Questions
    Replies: 12
    Last Post: 25 Apr 2014, 09:42 AM
  2. v139h How to add the manufacturers sidebox to my template footer?
    By cjsmiff in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 8 Jul 2013, 07:42 AM
  3. v150 How do I add two manufacturers to a product?
    By enochian in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 31 Jul 2012, 10:23 AM
  4. manufacturers side box is not showing the manufacturers list inside it
    By shresthashree in forum Basic Configuration
    Replies: 2
    Last Post: 31 Oct 2010, 02:49 PM
  5. How would I add many Manufacturers to the master list?
    By stlnyc in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 3 Nov 2008, 08: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