Zen Cart Logo
Forums / Customization from the Admin / Phone number not required for account creation

Phone number not required for account creation

Views: 1,113

Results 1 to 3 of 3
12 Feb 2014, 7:24 PM
#1
earmsby avatar

earmsby

Zen Follower

Join Date:
Oct 2006
Location:
Worcester, MA
Posts:
451
Plugin Contributions:
0

Phone number not required for account creation

I have set the minimum value to 0 to make it not required during account set up. However, the required asterisk indication still appears. Is there a way to remove that through the admin or do I need to manually remove it from the template?

To be clear, I want to display the field but not have it be required. The functionality for this is working fine. It's just the asterisk I want to remove.

12 Feb 2014, 8:22 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,085
Plugin Contributions:
56

Re: Phone number not required for account creation

The "required" asterisks won't go away without editing a language file (/includes/languages/YOUR_TEMPLATE/english.php); if that file doesn't exist, you'll copy /includes/languages/english.php to that directory and make your edits there. You'll need to change

 define('ENTRY_TELEPHONE_NUMBER_TEXT', '*');

to

 define('ENTRY_TELEPHONE_NUMBER_TEXT', '');

If you're feeling industrious, you could also give a try to the code change I proposed here: http://www.zen-cart.com/showthread.php?205951-Automatically-set-create_account-fields-required-flags. The most recent code is in the last post of that thread.

12 Feb 2014, 9:37 PM
#3
earmsby avatar

earmsby

Zen Follower

Join Date:
Oct 2006
Location:
Worcester, MA
Posts:
451
Plugin Contributions:
0

Re: Phone number not required for account creation

Thank you! I knew I had done this before on another store but it was so long ago I forgot how I got to it.