Nico2003 Posted June 20, 2003 Posted June 20, 2003 Hi there, any suggestions on how I can change the phone number requirement? I stil want to offer customers the choice to enter their phone number, but this should be voluntary. Thanks for any hints in advance! Nico
Guest Posted June 20, 2003 Posted June 20, 2003 I'm not a coder but you could try editing catalog/includes/form_check.js at line 134 try changing the 1 to a 0 or even try hacking out the whole piece of code. if (document.account_edit.elements['telephone'].type != "hidden") { if (telephone == '' || telephone.length < <?php echo ENTRY_TELEPHONE_MIN_LENGTH; ?>) { error_message = error_message + "<?php echo JS_TELEPHONE; ?>"; error = 1; } Haven't tried this so be careful!
Wizzud Posted June 20, 2003 Posted June 20, 2003 Search for 'required field account' in General Support topic reveals ... http://www.oscommerce.com/forums/viewtopic.php...d+field+account among others! Regards, Wizzud "It is better to remain silent and be thought a fool, than to open your mouth and remove all doubt."
Nico2003 Posted June 20, 2003 Author Posted June 20, 2003 @Paddy: Thanks a lot for your answer! @Wizzud: Thanks, this is exactly what I was looking for! I changed the number in the "minum values" to (blank), this works quite well. Ciao, Nico
Nico2003 Posted June 20, 2003 Author Posted June 20, 2003 Hi there, one more question: The filed "entry required" still shows up next to the entry field for the phone number. Where can I change that? Thanks for help, Nico
Nico2003 Posted June 20, 2003 Author Posted June 20, 2003 OK there, I found it out myself. For anyone experiencing the same problem: You can edit the text in the main language file in /includes/languages . Just delete the "required" text in the phone number section.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.