Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Deleting create an account fields


allk-9

Recommended Posts

Posted

Hi,

 

When a visitor clicks on create an account and the form comes up with all of

those required fields, is there anyway to remove them?

 

For example: How would I remove the Gender and Birthdate fields?

 

Thanks :huh:

Posted

These can be turned off in admin>configuration>customer details

 

Matti

Posted

Hi Matti,

 

I look for customer details under admin>configuration but I didn't seea field called customer details. How do I turn certain fields off? Do I set min values to 0?

 

Thanks :blink:

Posted

You can modify the following lines in /catalog/includes/application_top.php as you require:

 

// Control what fields of the customer table are used

  define('ACCOUNT_GENDER', false);

  define('ACCOUNT_DOB', true);

  define('ACCOUNT_COMPANY', false);

  define('ACCOUNT_SUBURB', false);

  define('ACCOUNT_STATE', false);

Posted

Ooops, no joy. I made the following mods, but the fields are still there when I try to create an account and they still say required...

 

// Control what fields of the customer table are used

define('ACCOUNT_GENDER', 'false');

define('ACCOUNT_DOB', 'false');

define('ACCOUNT_COMPANY', 'false');

define('ACCOUNT_SUBURB', 'true');

define('ACCOUNT_STATE', 'true');

 

Any other ideas??? :(

  • 2 weeks later...
  • 2 weeks later...
Posted

I have the same question. Even if the fields stay there, I just don't want them to be required.

 

another thing I would like to do is change the "State" field to a drop down.

  • 4 months later...
  • 3 years later...
Posted

Hi Forum,

 

I am still struggling with trying to completely remove the address and contact information fields from the account creation form. The file application_top.php does not have the line of code mentioned in this posting. Can someone help please?

 

Thanks.

Archived

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

×
×
  • Create New...