Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New Customer Account Question


gaglione1

Recommended Posts

Simple. Two things you need to do. Remove the checking codes, and remove the * marking necessary information.

 

1. Just edit the file catalog/create_account.php. Look for the following lines around lines 153 - 157:

 

	if (strlen($telephone) < ENTRY_TELEPHONE_MIN_LENGTH) {
  $error = true;

  $messageStack->add('create_account', ENTRY_TELEPHONE_NUMBER_ERROR);
}

 

Comment out the codes or remove them altogether:

 

//	if (strlen($telephone) < ENTRY_TELEPHONE_MIN_LENGTH) {
//	  $error = true;

//	  $messageStack->add('create_account', ENTRY_TELEPHONE_NUMBER_ERROR);
//	}

 

2. Edit catalog/includes/languages/english.php. Look for the following lines around lines 201 - 203:

 

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', '*');

 

Remove the * from the last definition:

 

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', '');

 

Hope that helps... :blush:

Link to comment
Share on other sites

Is there a way to make the telephone number NOT required when a customer signs up for an account? Some abandon the site because they are offended that they must furnish a phone number.

Good stuff. I actually found a way through the admin panel, but I like your way also, because it involves the code. Thank you!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...