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.
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.
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 ?
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
change toCode: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...Code:define('ENTRY_COMPANY_TEXT', '*');
after all that I just noticed other threads answering the same darn thing....
good luck
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
look at the bottom of this page...
BTW - my suggestions didn't work?
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