Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing required info from account setup


scdavis74

Recommended Posts

Posted

Can anyone tell me how to remove the validation of the following fields from the account setup:

 

-Gender

-Date of Birth

-Telephone # (want to make optional)

-Fax #

 

I have figured out how to remove these items from the form by changing their values to 'false' in create_account.php, however when the form is submitted, it still tries to validate these fields. So what I really need to know is how to adjust how OsCommerce validates this form. Any help would be much appreciated. Thanks.

Posted
Can anyone tell me how to remove the validation of the following fields from the account setup:

 

-Gender

-Date of Birth

-Telephone # (want to make optional)

-Fax #

 

I have figured out how to remove these items from the form by changing their values to 'false' in create_account.php, however when the form is submitted, it still tries to validate these fields. So what I really need to know is how to adjust how OsCommerce validates this form. Any help would be much appreciated. Thanks.

 

You will find the validation at the top of catalog/includes/create_account.php

 

There will be something like:

if (strlen(var) < MIN_LENGTH) {
 $error blah blah
}

 

just remove it for those variables.

Sorry i don't have the exact code as i'm not in my office.

Rob

Rob Bell - Inspired Graphix

Customising osCommerce in Australia, and the world!

View my profile for web and email links.

 

I'm sorry, but i cannot offer Free support via PM etc, and osCommerce forums prohibit me from putting any reference to paid support in my signauture.

However viewing my profile may provide links to my website or something like that which you may find useful.

Posted
You will find the validation at the top of catalog/includes/create_account.php

 

There will be something like:

if (strlen(var) < MIN_LENGTH) {
 $error blah blah
}

 

just remove it for those variables.

Sorry i don't have the exact code as i'm not in my office.

Rob

 

Thank you for the help. Your suggestion worked, however with the phone number, I need to leave that there but just make it optional so that it's not being validated. I tried your suggestion with this but it still makes it required. Any suggestions?

Archived

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

×
×
  • Create New...