Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Telephone Number In Create Account


Guest

Recommended Posts

Posted

I have tried serarching for the answer to this problem but cannot find it anywhere.

 

In create account I want customers to have the option of leaving their telephone number as it helps with couriers, but I do not want it to be a required field.

 

So does anyone know how I can fix it so new customers can leave this blank and still successfully create an account?

Posted

In Admin control panel, go to "Configuration->Minimum Values" and set the phone number to be blank or 0.

 

To remove the red asterisk, you may also like to go to catalog/include/languages/english.php and change the following line...

 

define('ENTRY_TELEPHONE_NUMBER_TEXT', '*');

 

to...

 

define('ENTRY_TELEPHONE_NUMBER_TEXT', '');

 

Hope this helps.

- osCommerce is fun! -
Posted

I have done this but when you click on continue you still get the message:

 

*Your Telephone Number must contain a minimum of 0 characters

 

Any ideas?

Posted

Have you tried just leaving it the option in admin blank? I'm sure this is working for me.

 

If that still doesn't work, go to catalog/create_account.php and comment out or delete the following passage...

 

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

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

- osCommerce is fun! -

Archived

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

×
×
  • Create New...