Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to make registration Salutation field optional?

How to make registration Salutation field optional?

Views: 1,085

Results 1 to 4 of 4
22 Jul 2016, 3:40 AM
#1
scott_ease avatar

scott_ease

New Zenner

Join Date:
Jun 2012
Posts:
68
Plugin Contributions:
2

How to make registration Salutation field optional?

Greetings!
The salutation field can be set false from Admin/Configuration/Customer Details, but how to make it optional (i.e. still shown but not required).
I think includes/modules/create_account.php need to be modified a little bit, but don't know exactly which line and how?
Please help. Thank you.

22 Jul 2016, 12:21 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,808
Plugin Contributions:
15

Re: How to make registration Salutation field optional?

Take a look in similar threads below.

22 Jul 2016, 12:30 PM
#3
lat9 avatar

lat9

Administrator

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

Re: How to make registration Salutation field optional?

The salutation is one of the fields that's either on or off, due to its implementation (it's presented as a pair of radio-buttons).

Any change to that behavior will require a change to many, many more modules than /includes/modules/create_account.php, just go to your admin's Tools->Developers Tool Kit and, in the last selection, enter **gender **and search in all catalog/admin files.

23 Jul 2016, 2:11 AM
#4
scott_ease avatar

scott_ease

New Zenner

Join Date:
Jun 2012
Posts:
68
Plugin Contributions:
2

Re: How to make registration Salutation field optional?

Wow, that's scary. There are 60+ files involved.
Hope new version of Zen Cart could be more flexible, because some websites do leave the salutation field optional, and also because gender is growing vague nowadays.