Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

i don't want telephone as reguired field


andes1

Recommended Posts

Posted

Anyone any idea about how to switch of some of the required fields when creating new account.

 

i have tried in minimun values; i filled the telephone value whit nothing (no numbers) only blank space. but when the costumer try to create an account, a pop up apears that says: " line 106---- sintax error" or when he finished "object expected"

 

i don't want telephone as reguired field. but i like that field as opcional or voluntari.

 

 

thank you for your help

Posted

I would also like to know how to remove the required "telephone" field when users input their information............. any assistance would be appreciated.............

Posted

i think i got it go to includes/language/english.php or whatever the language is then on line 203: define('ENTRY_TELEPHONE_NUMBER_TEXT', '*'); remove '*'

Posted

sorry i was wrong you must replace this:

 

define('ENTRY_TELEPHONE_NUMBER', 'Telephone Number:');

define('ENTRY_TELEPHONE_NUMBER_ERROR', 'Your Telephone Number must contain a minimum of ' . ENTRY_TELEPHONE_MIN_LENGTH . ' characters.');

define('ENTRY_TELEPHONE_NUMBER_TEXT', '*');

 

with this

 

define('ENTRY_TELEPHONE_NUMBER', 'Telephone Number:');

define('ENTRY_TELEPHONE_NUMBER_ERROR', '');

define('ENTRY_TELEPHONE_NUMBER_TEXT', '');

Posted
sorry i was wrong you must replace this:

 

define('ENTRY_TELEPHONE_NUMBER', 'Telephone Number:');

define('ENTRY_TELEPHONE_NUMBER_ERROR', 'Your Telephone Number must contain a minimum of ' . ENTRY_TELEPHONE_MIN_LENGTH . ' characters.');

define('ENTRY_TELEPHONE_NUMBER_TEXT', '*');

 

with this

 

define('ENTRY_TELEPHONE_NUMBER', 'Telephone Number:');

define('ENTRY_TELEPHONE_NUMBER_ERROR', '');

define('ENTRY_TELEPHONE_NUMBER_TEXT', '');

thanks..but it does not work... the error is still apear. or the pop up of required fields have apeared

 

maybe we should check and leran from the field "fax"

 

and try to understand his process in create_account.php. or in the DB. or in another place. CHANGING TRUE by false...some hipotesis.

 

 

 

because "fax" have the behavior that we are looking for. (optional field not required).

 

but how....

Posted

I have been trying to do the same thing. I want the First or Last name, email and phone to be optional. I think you have to look at the javascript that checks the form and also set the minimum values for those entries. The javascript can be located at includes/form_check.js.php (I think). I have not done this, but I am going to ty tonight. Good luck and post if successful

Posted

You actually do have to edit the javascript. I have already done the admin part and when you actually signup an account, a javascript error is generated that indicates the minimum values have not been reached. try it out an see....

Posted

I think if you edit form_check.js.php and comment out this line

 

check_input("telephone", <?php echo ENTRY_TELEPHONE_MIN_LENGTH; ?>, "<?php echo ENTRY_TELEPHONE_NUMBER_ERROR; ?>");

 

the customer can create an account without any phone number. I have not figured out how to remove the * from the end of the field

 

Also, you actually do not have to edit the admin part at all (min values) as you are no longer making this a required field.

 

try it out

Archived

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

×
×
  • Create New...