Zen Cart Logo
Forums / General Questions / Can you display an image next to a attribute?

Can you display an image next to a attribute?

Locked

Views: 879

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
26 Jun 2009, 11:46 PM
#1
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
516
Plugin Contributions:
2

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.

27 Jun 2009, 6:33 PM
#2
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
516
Plugin Contributions:
2

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!

28 Jun 2009, 9:29 AM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

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

Like I am doing HERE ?

28 Jun 2009, 9:37 AM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

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.

28 Jun 2009, 1:35 PM
#5
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
516
Plugin Contributions:
2

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.

28 Jun 2009, 2:38 PM
#6
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
516
Plugin Contributions:
2

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?

28 Jun 2009, 3:13 PM
#7
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
516
Plugin Contributions:
2

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:

<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.

29 Jun 2009, 12:55 AM
#8
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
516
Plugin Contributions:
2

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">
}
}
?>