Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Removing phone number in registration.

Removing phone number in registration.

Locked

Views: 6,646

Results 1 to 18 of 18
This thread is locked. New replies are disabled.
18 Aug 2006, 1:23 AM
#1
estrange avatar

estrange

New Zenner

Join Date:
Jul 2006
Posts:
48
Plugin Contributions:
0

Removing phone number in registration.

I actually searched it and found an answer but it didn't work. It was by adding ''vs' to the line. I'm assuming the post was refering to an older version. Anyone have any ideas on how to take it out?

18 Aug 2006, 1:53 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Removing phone number in registration.

If you set the Minimum Values to blank, not 0 ... but blank ... and edit the define for the * to '' in english.php

define('ENTRY_TELEPHONE_NUMBER_TEXT', '*');

Then it is still there but not required ...

To remove it 100%, set the minimum value to blank ... then you can edit the files:
tpl_modules_create_account.php
tpl_account_edit_default.php
and anywhere else you do not wish to see the phone number ...

18 Aug 2006, 11:38 PM
#3
estrange avatar

estrange

New Zenner

Join Date:
Jul 2006
Posts:
48
Plugin Contributions:
0

Re: Removing phone number in registration.

Thanks for the tip. I understood the first two parts in setting to zero and editing the *. But the telephone field is still there in registration. So I looked up the other two TPL files and I'm not sure how to edit them.

19 Aug 2006, 12:28 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Removing phone number in registration.

To completely remove it from everywhere there will be quite a few edits ...

tpl_modules_create_account.php for example would need to have this section removed in your overrides file:

<legend><?php echo TABLE_HEADING_PHONE_FAX_DETAILS; ?></legend>
<label class="inputLabel" for="telephone"><?php echo ENTRY_TELEPHONE_NUMBER; ?></label>
<?php echo zen_draw_input_field('telephone', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_telephone', '40') . ' id="telephone"') . (zen_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="alert">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>': ''); ?>

You may find it easier to just not make it a required file than to try to remove it totally ...

NOTE: to make it not require, leave it blank not set at 0

21 Aug 2006, 6:09 PM
#5
buzzville avatar

buzzville

New Zenner

Join Date:
May 2006
Posts:
87
Plugin Contributions:
0

Re: Removing phone number in registration.

I'm trying to make the phone number field not required, but still have it present (optional) on the account creation page. I've made the minimum value blank and removed the asterisk from the english.php file, and I thought all was well. However, upon going live this morning, a customer wrote in the following:

"Since your site is new, I wanted to let you know about a little bit of a bug
I ran into while placing my order. The phone number isn't required, but
then when I went to place the order, it errored out because it didn't have
my phone number. Then there isn't any place to put in the phone number
there, so I had to go out of the ordering screen, go into "My Account" and
add my phone and then go back and place the order again."

Any ideas? I'm on the latest release 1.3.02, and here's the url: superbuzzy.com

Thanks in advance for your help!

21 Aug 2006, 6:28 PM
#6
buzzville avatar

buzzville

New Zenner

Join Date:
May 2006
Posts:
87
Plugin Contributions:
0

Re: Removing phone number in registration.

As a follow up to my question, I just viewed the profile for one of my customers and found that the birthdate and phone number are still listed as required in the Admin section although I set both of those values to blank in the minimum values section. Does this help point the way to a solution? I'd like both birthdate and phone number fields to be on the form, but optional. Thanks again.

21 Aug 2006, 6:58 PM
#7
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Removing phone number in registration.

Please read the first part of Ajeh's post (number 2 above). It tells you exactly how to do that.

21 Aug 2006, 7:05 PM
#8
buzzville avatar

buzzville

New Zenner

Join Date:
May 2006
Posts:
87
Plugin Contributions:
0

Re: Removing phone number in registration.

Thanks, but unless I'm missing something, that's exactly what I've already done... set the minimum values to blank and removed the asterisks in the english.php file. That's why I'm posting...

21 Aug 2006, 7:39 PM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Removing phone number in registration.

Under Customer Details ...

Date of Birth
Display date of birth field during account creation and with account information
NOTE: Set Minimum Value Date of Birth to blank for not required
Set Minimum Value Date of Birth > 0 to require

Then edit the language file to remove the * require:

define('ENTRY_DATE_OF_BIRTH_TEXT', '* (eg. 05/21/1970)');

Set the Minimum Value for Telephone to blank, not 0 then edit the language file for the require:

define('ENTRY_TELEPHONE_NUMBER_TEXT', '*');

Now they are on the forms but not required ...

21 Aug 2006, 8:00 PM
#10
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Removing phone number in registration.

One question
When I go to Admin
Configuration->Customer Details
I dont see any field for telephone number
Why like that?

21 Aug 2006, 8:44 PM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Removing phone number in registration.

That is because the Telephone number setting is in the Minimum Value section as I indicated and not in the Customer Details ...

21 Aug 2006, 9:03 PM
#12
buzzville avatar

buzzville

New Zenner

Join Date:
May 2006
Posts:
87
Plugin Contributions:
0

Re: Removing phone number in registration.

I'm at a total loss, and I must be missing something really simple... I have already made both the Date of Birth and Telephone Number values blank (not zero, not anything) in the Config-Admin section. I have edited the includes/languages/english.php file to remove the asterisks from both terms:

define('ENTRY_DATE_OF_BIRTH_TEXT', '(eg. 05/21/1970)');

and

define('ENTRY_TELEPHONE_NUMBER_TEXT', '');

So, now customers are finding that the fields are not marked as required (no asterisks), but they are not permitted to check out until they go back and enter a phone number in the field.

Is there something I'm missing? I appreciate your help!

22 Aug 2006, 1:23 AM
#13
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Removing phone number in registration.

Which version of Zen Cart are you running?

Is this a clean install or an upgrade?

If you switch to Classic and try to create an account and just hit submit do DOB and Telephone come up as required?

22 Aug 2006, 2:59 AM
#14
buzzville avatar

buzzville

New Zenner

Join Date:
May 2006
Posts:
87
Plugin Contributions:
0

Re: Removing phone number in registration.

I'm on 1.3.02, but I upgraded using changed files only. You're probably going to suggest a clean install, right? I'm a bit terrified, but I'll try it!

22 Aug 2006, 3:19 AM
#15
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Removing phone number in registration.

changed files is fine IF you used them to upgrade from 1.3.0.1

Otherwise, you should have used the full fileset.

6 Sep 2006, 7:29 AM
#16
azza avatar

azza

New Zenner

Join Date:
Sep 2006
Posts:
4
Plugin Contributions:
0

Re: Removing phone number in registration.

what file contains where i have to set the minimum values to blank?

6 Sep 2006, 7:59 AM
#17
azza avatar

azza

New Zenner

Join Date:
Sep 2006
Posts:
4
Plugin Contributions:
0

Re: Removing phone number in registration.

i worked out the minimum value thing but how do i do the same for country and salutation

25 Jun 2007, 2:14 PM
#18
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Re: Removing phone number in registration.

I was just trying to make the telephone field not required…

To extend the answer: you have to change phone number minimum value to blank in the Admin > Configuration > Minimum Values

And remove “” in: define('ENTRY_TELEPHONE_NUMBER_TEXT', '');
\includes\languages\english.php

That is all