Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Optional Telephone Number


Guest

Recommended Posts

Posted

Hi All

 

At the moment when a customer goes through checkout they have to put in their telephone number, I would like to make it optional and not a requirement. Any ideas where and what code i need to change?

 

Thanks

 

Matt

Posted

Look at create_account.php, and see how the code changes between stuff that's required and stuff that's optional. I don't, offhand, know how to change it, but it shouldn't be too difficult to figure it out.

Always BACK UP your files and your database before making any changes. Before asking questions, check out the Knowledge Base. Check out the contributions to see if your problem's solved there. Search the forums.

 

Useful threads: Store Speed Optimization How to make a horrible shop Basics for design change How to search the forums

 

Useful contributions: Easypopulate Fast, Easy Checkout Header Tag Controller

Posted
Hi All

 

At the moment when a customer goes through checkout they have to put in their telephone number, I would like to make it optional and not a requirement. Any ideas where and what code i need to change?

 

Thanks

 

Matt

Making the telephone number optional is an easy fix.

1) Go to your admin->configuration->minimum values and make sure the entry for telephone number is cleared

2) Edit your (catalog)/includes/languages/english.php file by searching for

define('ENTRY_TELEPHONE_NUMBER_TEXT', '*');

and simply change that to

define('ENTRY_TELEPHONE_NUMBER_TEXT', '');

 

After this the telephone number is optional.

Archived

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

×
×
  • Create New...