Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing: Phone number required


Nico2003

Recommended Posts

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

@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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...