Forums / Setting Up Categories, Products, Attributes / Text Option Value in Drop Down Or Radio Option Name

Text Option Value in Drop Down Or Radio Option Name

Locked

Views: 1,803

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
17 Nov 2010, 11:02 AM
#1
dvdtitan avatar

dvdtitan

New Zenner

Join Date:
Apr 2007
Posts:
87
Plugin Contributions:
0

Text Option Value in Drop Down Or Radio Option Name

I am trying to set up embroidery as a product on one of my sites to allow a customer to add custom printing and embroidery options to garments.

I am asking customers to choose the font of the words they require embroidering and have listed 5 radio style options of familiar fonts.

I have added a radio attribute for "other" fonts and i am trying to allow a text field to show up when that radio option is selected so that customers can type in their font.

Is it possible to mkae a radio attribute vlaue when selected open a text box up?

17 Nov 2010, 11:18 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Text Option Value in Drop Down Or Radio Option Name

DVDTitan:

Is it possible to mkae a radio attribute vlaue when selected open a text box up?
Not without writing custom code to intelligently figure out which specific attribute is being displayed, and write appropriate custom javascript code to detect the click and then display the field and force something to be entered in it before the page can be submitted.

You're basically trying to create javascript-driven dynamic attribute dependencies ... which isn't a built-in feature at the present time. :blush:

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

17 Nov 2010, 11:56 AM
#3
dvdtitan avatar

dvdtitan

New Zenner

Join Date:
Apr 2007
Posts:
87
Plugin Contributions:
0

Re: Text Option Value in Drop Down Or Radio Option Name

DrByte:

Not without writing custom code to intelligently figure out which specific attribute is being displayed, and write appropriate custom javascript code to detect the click and then display the field and force something to be entered in it before the page can be submitted.

You're basically trying to create javascript-driven dynamic attribute dependencies ... which isn't a built-in feature at the present time. :blush:

Oh well, thanks anyway. Another related question to what i'm trying to achieve while you're here!

Is there a way of allowing the selection of more than 1 option value under one option name.

In other words i am setting up an attribute for logo position and some customer's may want a logo in more than one place (e.g. left chest and right sleeve).

Is this possible?

17 Nov 2010, 12:02 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Text Option Value in Drop Down Or Radio Option Name

If you make them checkboxes, then multiple choices can be made.
Radio buttons or dropdowns are single choices.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

17 Nov 2010, 12:06 PM
#5
dvdtitan avatar

dvdtitan

New Zenner

Join Date:
Apr 2007
Posts:
87
Plugin Contributions:
0

Re: Text Option Value in Drop Down Or Radio Option Name

DrByte:

If you make them checkboxes, then multiple choices can be made.
Radio buttons or dropdowns are single choices.

I should have known that!!!

Thanks for your help.