Hire an Agile Team for your business

Create your own agile squad with experienced members for your business.

Connect with Experts

How to make the telephone number not be required without disabling

Last Updated on May 29, 2019 by Numinix Developer

It seems like such a little thing, but unless you know how Zen Cart works, making the telephone number not required without disabling it completely can be like finding a needle in a haystack.

Firstly, why is important? Well, unless you are shipping with a courier that requires a telephone number, having this extra field in your registration page can deter some customers that want to give out as little personal information. They see the red star (meaning the field is required) next to the telephone field and they quickly abandon their carts, leaving you scratching your head while watching the who’s online page. But, you can’t just remove that red star or PHP will return a warning that the telephone number field is required.

So, here’s what you do:

First, go to ADMIN->CONFIGURATION->MINIMUM VALUES and set Telephone to 0. Do not leave it blank or this will cause JavaScript errors.

Next, open /includes/languages/english.php (this file may also be in your overrides folder), and find:

define('ENTRY_TELEPHONE_NUMBER_TEXT', '*');

and change to:

define('ENTRY_TELEPHONE_NUMBER_TEXT', '');

And that’s it! Now your customers won’t have to provide their telephone number and you’ll still be able to gather this information from the rest of your customers.

One thought on “How to make the telephone number not be required without disabling


Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Account Cart Search Cart Open Menu Arrow Link Arrow Chat Close Close Popup Facebook Twitter Google Plus linkedin2 How to make the telephone number not be required without disabling - Numinix Blog