Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Required information


TracyJane

Recommended Posts

Hello

 

How would I go about stopping certain fields from being required in the section where a customer signs up.

 

I would like the State/Province (which I have changed to County Region) and telephone numbers to be optional.

 

Thank you

 

Tracy Jane :blink:

Link to comment
Share on other sites

  • 4 weeks later...

I made telephone optional by doing the following:

 

- In admin->minimum values->telephone number set to 0

 

- In catalog/includes/formcheck.js commented out the following line:

//check_input("telephone", <?php echo ENTRY_TELEPHONE_MIN_LENGTH; ?>, "<?php echo ENTRY_TELEPHONE_NUMBER_ERROR; ?>");

 

- In catalog/includes/languages/english.php changed

define('ENTRY_TELEPHONE_NUMBER_TEXT', '*');

 

to

 

define('ENTRY_TELEPHONE_NUMBER_TEXT', '');

 

- In In catalog/admin/includes/languages/english.php changed

define('ENTRY_TELEPHONE_NUMBER_TEXT', ' <small><font color="#AABBDD">required</font></small>');

 

to

 

define('ENTRY_TELEPHONE_NUMBER_TEXT', ' <small><font color="#AABBDD">optional</font></small>');

 

You should be able to follow the above for other required fields...

 

Hope this helps!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...