Zen Cart Logo
Forums / Managing Customers and Orders / Making the company name 'required' in registration

Making the company name 'required' in registration

Locked

Views: 2,975

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
18 Jul 2006, 4:56 PM
#1
pilot avatar

pilot

New Zenner

Join Date:
Apr 2005
Posts:
55
Plugin Contributions:
0

Making the company name 'required' in registration

I have searched this under registration, required,Required information, and can't find a post on it?

I just need to make the Company name required in the registraton form, like the First and Last name ?

Thanks in advance.

19 Jul 2006, 8:18 AM
#2
pilot avatar

pilot

New Zenner

Join Date:
Apr 2005
Posts:
55
Plugin Contributions:
0

Re: Making the company name 'required' in registration

I have searched the forums high and low for anyone trying to make sign up fields required such as the company name field.

It would be nice to have a controll in admin to do this, but as far as I can see the code controlling this is in

includes/modules/create_account.php

if ($error == true) {
// hook notifier class
$zco_notifier->notify('NOTIFY_FAILURE_DURING_CREATE_ACCOUNT');
} else {
$sql_data_array = array('customers_firstname' => $firstname,
'customers_lastname' => $lastname,
'customers_email_address' => $email_address,
'customers_nick' => $nick,
'customers_telephone' => $telephone,
'customers_fax' => $fax,
'customers_newsletter' => $newsletter,
'customers_email_format' => $email_format,
'customers_default_address_id' => '0',
'customers_password' => zen_encrypt_password($password),
'customers_authorization' => CUSTOMERS_APPROVAL_AUTHORIZATION

Has anyone done this ?

19 Jul 2006, 2:37 PM
#3
wasana avatar

wasana

Zen Follower

Join Date:
Apr 2006
Location:
Chiang Mai
Posts:
203
Plugin Contributions:
0

Re: Making the company name 'required' in registration

this is unproven and untested - but using reverse logic to make these items NOT required -

admin/config/minimum put a minimum number of characters -- the system will look to make sure they are there - what happens when left blank is a question I don't have answer for...

now you need to add a red asterick (* required) - these are edited in includes/languages/english.php

 define('ENTRY_COMPANY_TEXT', '');

change to

 define('ENTRY_COMPANY_TEXT', '*');

You're probably going to do more than this to get the right error messages popping up etc - but worth checking out...

after all that I just noticed other threads answering the same darn thing....

good luck

19 Jul 2006, 3:17 PM
#4
pilot avatar

pilot

New Zenner

Join Date:
Apr 2005
Posts:
55
Plugin Contributions:
0

Re: Making the company name 'required' in registration

Thanks i'll give it a try !

"
after all that I just noticed other threads answering the same darn thing.... "

I have searched for ages for a similar post ! where did you find the posts ? I tried everything.

Thanks

20 Jul 2006, 2:09 AM
#5
wasana avatar

wasana

Zen Follower

Join Date:
Apr 2006
Location:
Chiang Mai
Posts:
203
Plugin Contributions:
0

Re: Making the company name 'required' in registration

look at the bottom of this page...:P

BTW - my suggestions didn't work?

20 Jul 2006, 6:47 PM
#6
pilot avatar

pilot

New Zenner

Join Date:
Apr 2005
Posts:
55
Plugin Contributions:
0

Re: Making the company name 'required' in registration

I am going to test your method on my test machine, but then ran into troubles transfering the database.
Got that fixed now, so will give it a go tomorrow

Great site you have there .. nicely done, its credit to you.

Cheers