Forums / General Questions / How to make "Company Name" a required field?

How to make "Company Name" a required field?

Locked

Views: 2,673

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
14 Feb 2009, 5:54 AM
#1
hllight avatar

hllight

Zen Follower

Join Date:
May 2007
Location:
Port Charlotte, FL
Posts:
125
Plugin Contributions:
0

How to make "Company Name" a required field?

Can anyone tell me how to make "Company Name" a required field when a customer is creating their account?

H. Light
Florida

14 Feb 2009, 5:12 PM
#2
hllight avatar

hllight

Zen Follower

Join Date:
May 2007
Location:
Port Charlotte, FL
Posts:
125
Plugin Contributions:
0

Re: How to make "Company Name" a required field?

This questions was aked and answered before so I found the answer. Thanks!
However, you still need to add the "" after the field indicating it is a required field. Here is how I did it:
1- Open includes/languages/yourtemplate/english.php
2- Change the following line:
BEFORE
define('ENTRY_COMPANY_TEXT', '');
AFTER
define('ENTRY_COMPANY_TEXT', '
');

That did it for me.

H. Light
Florida

14 Feb 2009, 9:28 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to make "Company Name" a required field?

That does "flag" the field to be required ... however, if you do not change the Minimum Value on the Company field it will not be required ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

15 Feb 2009, 6:10 AM
#4
hllight avatar

hllight

Zen Follower

Join Date:
May 2007
Location:
Port Charlotte, FL
Posts:
125
Plugin Contributions:
0

Re: How to make "Company Name" a required field?

Thanks for your response.
But both are required, correct? When I set the minimum value, it did not automatically append the "*" to indicate a required field. I thought it would do it automaticaly when I set a minimum value. Since it didn't I added it manually.

H. Light
Florida

15 Feb 2009, 3:26 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to make "Company Name" a required field?

Both do need to be done ... 1 from a coding aspect to force the field to be filled in and 1 from a visual aspect to alert the customer that the field is required ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!