Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2005
    Posts
    55
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Apr 2005
    Posts
    55
    Plugin Contributions
    0

    Default 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 ?

  3. #3
    Join Date
    Apr 2006
    Location
    Chiang Mai
    Posts
    405
    Plugin Contributions
    0

    Default 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

    Code:
     define('ENTRY_COMPANY_TEXT', '');
    change to
    Code:
     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

  4. #4
    Join Date
    Apr 2005
    Posts
    55
    Plugin Contributions
    0

    Default 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

  5. #5
    Join Date
    Apr 2006
    Location
    Chiang Mai
    Posts
    405
    Plugin Contributions
    0

    Default Re: Making the company name 'required' in registration

    look at the bottom of this page...

    BTW - my suggestions didn't work?

  6. #6
    Join Date
    Apr 2005
    Posts
    55
    Plugin Contributions
    0

    Default 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

 

 

Similar Threads

  1. Making Company Field on Create Account Required
    By pioupioun in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 21 Oct 2010, 04:31 PM
  2. Company Name Required
    By tony manero in forum Managing Customers and Orders
    Replies: 1
    Last Post: 26 Jan 2010, 06:31 PM
  3. Company Name in registration - question
    By pwoens in forum Upgrading from 1.3.x to 1.3.9
    Replies: 4
    Last Post: 20 Sep 2008, 12:43 PM
  4. Company name vs Customer name at registration
    By sanji in forum Managing Customers and Orders
    Replies: 4
    Last Post: 28 Jan 2008, 10:57 AM
  5. Company Name is Required field?!?!
    By wickedklown in forum General Questions
    Replies: 10
    Last Post: 1 Feb 2007, 02:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg