Guest Posted June 1, 2005 Posted June 1, 2005 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?
sosidge Posted June 1, 2005 Posted June 1, 2005 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! -
Guest Posted June 1, 2005 Posted June 1, 2005 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?
Jumping Rabbit Posted June 1, 2005 Posted June 1, 2005 The required fields are controlled in includes/form_check.js Faster Checkout - osCommerce Knowledge Base - Anyone meet offline?, Has anyone of you cyberkids meet offline? For newbees do atleast read this 4 points: Basic info - Search tips and help - Posting tips and help - Basics for Design
sosidge Posted June 1, 2005 Posted June 1, 2005 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! -
Recommended Posts
Archived
This topic is now archived and is closed to further replies.