Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to Make Selection of Radio Button Required?

How to Make Selection of Radio Button Required?

Locked

Views: 7,418

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
8 Mar 2009, 7:40 AM
#1
anitab avatar

anitab

New Zenner

Join Date:
Feb 2009
Posts:
50
Plugin Contributions:
0

How to Make Selection of Radio Button Required?

How do you define a radio attribute as required, such that if you don't choose one the customer will get an error message and be asked to choose one?

Thanks.

8 Mar 2009, 7:43 AM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,178
Plugin Contributions:
0

Re: How to Make Selection of Radio Button Required?

AnitaB:

How do you define a radio attribute as required, such that if you don't choose one the customer will get an error message and be asked to choose one?

Thanks.

An,
Did you notice the Tutorials/FAQ button on the top of this page

  1. Do a search on Attributes
  2. This might help you

Attributes, Force to Select

Right now I can add to the cart and not select a color.. BAD. I am automatically linked to the shopping cart with the default color Black, but really I wanted White..

The beauty of this procedure: Is a warning box appears at the top of the page stating they have not selected a attribute color you offer to the customer.

Example of what it should look like in the Option Value Manager:
(The 0, 10, 20, 30 are the sort orders)

Please Select Color 0
Black 10
Brown 20
White 30

You need to add one extra value To Color:

  1. In the Option Value Manager under Color
  2. Add the following: Please Select Color
  3. Sort Order 0

Now in Attribute Controller for each product with this Value:

  1. Add, Please Select Color to product, sort order 0
  2. Associate the flag properties to Please Select Color
  3. Under Attribute Flags: the colored boxes
  4. Yellow box, Used for Display purpose only: Click Yes
  5. Tan box, Default Attribute to be marked selected: Click Yes
8 Mar 2009, 8:38 AM
#3
anitab avatar

anitab

New Zenner

Join Date:
Feb 2009
Posts:
50
Plugin Contributions:
0

Re: How to Make Selection of Radio Button Required?

I read that post, but I don't know where the "Force to Select" option is...?

8 Mar 2009, 8:56 AM
#4
anitab avatar

anitab

New Zenner

Join Date:
Feb 2009
Posts:
50
Plugin Contributions:
0

Re: How to Make Selection of Radio Button Required?

ok, I reread that post a few times...I guess there is not a option to make the radio attribute required, but you are telling me to follow the complete directions you posted...sorry, almost 1am, and I am a little tired...and dumb. I'll follow the directions you reposted and see if I can get it to work......tomorrow...Thanks.

8 Mar 2009, 9:27 AM
#5
anitab avatar

anitab

New Zenner

Join Date:
Feb 2009
Posts:
50
Plugin Contributions:
0

Re: How to Make Selection of Radio Button Required?

I stayed up and tried it...it worked!!! and I even got an error message to display if a radio attribute was not selected by turning the red (required) box on. sorry for being a duffus before. :bangin:

8 Mar 2009, 9:33 AM
#6
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,178
Plugin Contributions:
0

Re: How to Make Selection of Radio Button Required?

AnitaB:

I stayed up and tried it...it worked!!! and I even got an error message to display if a radio attribute was not selected by turning the red (required) box on. sorry for being a duffus before. :bangin:

An,
GREAT, GREAT :clap:

I knew you would get it finally.

Always tricky the first time, but with practice yes you will be zenned...

Always refer to the Tutorials/FAQ on the top of this page with the orange tab

  1. search for Attributes, etc. etc.
  2. This is a very powerful killer tool
30 Mar 2009, 3:33 PM
#7
ptownkid avatar

ptownkid

New Zenner

Join Date:
Jul 2008
Posts:
25
Plugin Contributions:
0

Re: How to Make Selection of Radio Button Required?

Has anyone had problems getting this to work?

I followed the directions to a T, and when I preview it in the attribute controller it displays exactly as it should, but it doesn't appear on my site...

I'm thinking it may be an issue caused by stock by attribute but I'm no code wizard...

http://diypartssupply.com/index.php?main_page=product_info&cPath=3&products_id=3

30 Mar 2009, 3:53 PM
#8
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,178
Plugin Contributions:
0

Re: How to Make Selection of Radio Button Required?

Ptownkid:

Has anyone had problems getting this to work?

I followed the directions to a T, and when I preview it in the attribute controller it displays exactly as it should, but it doesn't appear on my site...

I'm thinking it may be an issue caused by stock by attribute but I'm no code wizard...

http://diypartssupply.com/index.php?main_page=product_info&cPath=3&products_id=3

Pt,
You have forgot to add:

  1. Option Value Manager
  2. Color
  3. Add: Please Select
  4. Sort order: 0
  5. Then, attribute controller:
  6. Add Please Select to Gssl Meter
  7. Following instructions about to click on the colored boxes below to set this function
30 Mar 2009, 3:58 PM
#9
ptownkid avatar

ptownkid

New Zenner

Join Date:
Jul 2008
Posts:
25
Plugin Contributions:
0

Re: How to Make Selection of Radio Button Required?

That's what I'm saying, I have done that...

30 Mar 2009, 4:03 PM
#10
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,178
Plugin Contributions:
0

Re: How to Make Selection of Radio Button Required?

Pt,
Sent you a Pm

30 Mar 2009, 4:03 PM
#11
ptownkid avatar

ptownkid

New Zenner

Join Date:
Jul 2008
Posts:
25
Plugin Contributions:
0

Re: How to Make Selection of Radio Button Required?

So is the above correct though?

30 Mar 2009, 4:07 PM
#12
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,178
Plugin Contributions:
0

Re: How to Make Selection of Radio Button Required?

Yes, so far

30 Mar 2009, 4:19 PM
#13
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,178
Plugin Contributions:
0

Re: How to Make Selection of Radio Button Required?

Pt,
Thanks for the access,
She is fixed now,
Since you downloaded the Attribute by Stock Mod.

  1. I had to add Please Select Color to this

  2. admin panel/ catalog/ products with attribute stock
    Take time to read the Tutorial/ faq

  3. search for override system

  4. you are using the classic template

  5. The pictures in: http://diypartssupply.com/index.php?main_page=product_info&cPath=3&products_id=3

  6. They are too large and pushing your right column over the margins.

  7. Quick fix:

  8. edit the stylesheet.css

  9. #mainWrapper {

background-color:#FFFFFF;
border:1px solid #9A9A9A;
text-align:left;
vertical-align:top;
width:750px;
}
8. The highlighted red font above: change to 925
9. Or change the size of the images: smaller

30 Mar 2009, 4:25 PM
#14
ptownkid avatar

ptownkid

New Zenner

Join Date:
Jul 2008
Posts:
25
Plugin Contributions:
0

Re: How to Make Selection of Radio Button Required?

Thank you so much for your help!!!

Yeah, i noticed that issue with the images, but had more pressing details to attend to, lol.

I'm learning, slowly but surely.

Thanks again!

30 Mar 2009, 4:28 PM
#15
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,178
Plugin Contributions:
0

Re: How to Make Selection of Radio Button Required?

Pt,
You are most welcome, glad I could help you..
Just remember when you download a addon, most of the time there is a function here that will control the cart..

Hell, I am still learning Zen Cart... Nice site.. Good Luck