Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing: Phone number required


Nico2003

Recommended Posts

Posted

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

Posted

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!

Posted

@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

Posted

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

Posted

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.

Archived

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

×
×
  • Create New...