Zen Follower
- Join Date:
- Aug 2005
- Posts:
- 130
- Plugin Contributions:
- 0
Setting Order Comments field required, and making it drop-down?
Ok, so I want to have the customer choose who they found our website on the checkout procedure (on the first checkout page where they enter their shipping info) and require this to be completed.
Now I didn't know how to do this so I thought, I'll just edit the Comments box and call it "How did you find us". This worked good, but people still weren't typing in how they found us so I want to make this field required.
I also thought to change this to a drop-down with hard-coded choices for the user. I know I can edit the templates/tpl_checkout_shipping_default.php file and just draw out the drop-down and call it comments.
So my questions are:
-
How do I make the comments fields required? So that if there is nothing entered, the page will be displayed again and an error note saying they must select how they found us.
-
This does away with the comment box, per se... any other ideas on how I can do this and still keep the comments box for comments?
Thanks!