Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Required fields for creating an account.


Guest

Recommended Posts

Posted

I would like to remove the DOB field, and the Gender questions from my create account screen. B4 I make any changes I want to make sure I am doing this correctly. I would want to remove some code in /var/www/html/includes/form_check.js.php and in /var/www/html/create_account.php and : /var/www/html/create_account_process.php. Is there were I would remove all the text for DOB and Gender? If so what exactly has to be removed? can I just comment stuff out?

 

Thanks for all your help.

 

Charles

Posted

These are all marked to False. And it is still coming up when you try to create an account.

Posted

Also check for those settings in either your includes/configure.php or includes/application_top.php (do a search for gender).

 

Some of the older versions while having the Admin options still used the settings from the include files instead.

 

If that is not the case, then check you account_edit.php and create_account.php files to see if the Gender and DoB fields are preceded by if (ACCOUNT_GENDER) or if (ACCOUNT_DATE_OF_BIRTH) blocks.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

Well this is what I had to change in application_top.php. Gender was set to True and so was DOB. That worked like a dream Now were does this put it on the screen so if I want to change the order of them?

 

// Control what fields of the customer table are used

 define('ACCOUNT_GENDER', 'False');

 define('ACCOUNT_DOB', 'False');

 define('ACCOUNT_COMPANY', 'true');

 define('ACCOUNT_SUBURB', 'true');

 define('ACCOUNT_STATE', 'true');

Posted

Hi,

 

You must have an old store. It would be better if you got 2.2ms1.

 

Those details are listed on the catalog/includes/modules/account_details.php page.

 

This page has been removed in the development snapshot and the logic put into another page.

Posted
Those details are listed on the catalog/includes/modules/account_details.php page.

 

This page has been removed in the development snapshot and the logic put into another page.

Actually, the contents of the account_details.php page have been moved into the create_account.php and account_edit.php pages in the newest CVS versions.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

Thanks Jim!

 

I knew I read it somewhere but couldn't find where they had been moved.

Posted

Glad to help Melinda. ;)

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

Thanks Jim!

 

I knew I read it somewhere but couldn't find where they had been moved.

  • 4 weeks later...
Posted

hmmmmmmm....weird!

 

well i've read this thread 5 times now but it still doesn't solve that "required fields" problem for me.

 

 

i just want to remove the whole ADRESS, PHONE and FAXNUMBER and NEWSLETTE block.

 

this means that the customer only has to input his name, email birthdate dan password.

 

 

is there anyone who can help me with that??

 

 

and....why isn't it possible to set these things in der admin console?? would be helpful :D

  • 4 weeks later...
Posted

in catalogincludesform_checks.js.php

 

I commented out the lines for the fields i did not want to be required, for example Date of Birth:

 

# if (dob == '' || dob.length < <?php echo ENTRY_DOB_MIN_LENGTH; ?>) {

# error_message = error_message + "<?php echo JS_DOB; ?>";

# error = 1;

# }

 

(if you dont know PHP, the pound sign comments out the line of code)

 

this lets a user sign up without entering their DOB, however it still says "required" on the sign up page. Does anyone know where I can change that? I can't find any files containing the string "required".

 

Thanks! :shock:

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...