Results 1 to 8 of 8
  1. #1
    Join Date
    May 2008
    Location
    United States
    Posts
    495
    Plugin Contributions
    2

    Default Can you display an image next to a attribute?

    I want to add an image next to an attribute that is a picture of a ? and when clicked pops up and explains what that option is.

    Anyone know how to do this, I'm not sure how to link the image to only show next to that one attribute and what file to add it to.

  2. #2
    Join Date
    May 2008
    Location
    United States
    Posts
    495
    Plugin Contributions
    2

    Default Re: Can you display an image next to a attribute?

    Any help on this one? I can not seem to find anything on this, I know someone has had to do something like this before!

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

    Default Re: Can you display an image next to a attribute?

    Like I am doing HERE ?
    20 years a Zencart User

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

    Default Re: Can you display an image next to a attribute?

    When you add an attribute to a product, there is a facility to attach an IMAGE SWATCH - right at the bottom of that products Arttribute Controller screen. Select the attribute (if already added), then EDIT, then apply the path to the image swatch - or upload the image... whichever action is applicable.
    20 years a Zencart User

  5. #5
    Join Date
    May 2008
    Location
    United States
    Posts
    495
    Plugin Contributions
    2

    Default Re: Can you display an image next to a attribute?

    Thanks for responding, I will look at that however I’m not sure it will do want I looking to do.

    I have a dropdown attribute that is a yes or no and I want an image of a question mark next to it to help the customer if they do not know what that attribute is, basically when you press it I will have java code popup help box describing it in detail.

    I just need a way to add this image to the right of an attribute, right next to it not under.

  6. #6
    Join Date
    May 2008
    Location
    United States
    Posts
    495
    Plugin Contributions
    2

    Default Re: Can you display an image next to a attribute?

    For example the attribute id is 16, is there a way to code:

    if attribute id = 16 then display this image next to it?

  7. #7
    Join Date
    May 2008
    Location
    United States
    Posts
    495
    Plugin Contributions
    2

    help question Re: Can you display an image next to a attribute?

    how would I write this correctly:

    if attribute id = 16 then

    I want to display this code next to it which is a pop image file explaining what the attribute is:

    Code:
    <a href="name_of_file.html" target="popup" onClick="wopen('quick_order.html', 'popup', 500, 300); return false;"><img border="0" src="images/help.jpg" alt="" width="30" height="28">
    I know how to add the java code to the page I'm just looking to add this code on this one attribute, and do not know how to write the code and can not find any examples.

  8. #8
    Join Date
    May 2008
    Location
    United States
    Posts
    495
    Plugin Contributions
    2

    Default Re: Can you display an image next to a attribute?

    Ok the part in bold is not formated right, can anyone tell me whats wrong with it?

    <?php
    if ($i == 3) {
    if (($_GET['products_id']) == 300) { ?>
    <a href="name_of_file.html" target="popup" onClick="wopen('quick_order.html', 'popup', 500, 300); return false;"><img border="0" src="images/help.jpg" alt="" width="30" height="28">
    }
    }
    ?>

 

 

Similar Threads

  1. v139h Attribute Image Swap (Show Attribute Image Next to Radio Button)
    By Robert Thomas Kirby in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 1 Nov 2013, 06:24 PM
  2. Can you style a display only attribute?
    By dgent in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Feb 2012, 04:27 PM
  3. Move Part of Attribute next to image
    By DigitalGuard in forum General Questions
    Replies: 0
    Last Post: 22 Mar 2010, 05:06 PM
  4. Oh, Price next to attribute - why won't you display?
    By thomasharding in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 18 Jul 2008, 06:08 PM
  5. Can you display an image next to a text attribute?
    By aaelghat in forum General Questions
    Replies: 8
    Last Post: 10 Apr 2008, 06:15 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