Zen Cart Logo
Forums / Customization from the Admin / Customer telephone required?

Customer telephone required?

Locked

Views: 3,366

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
22 Apr 2008, 5:45 PM
#1
tammyt avatar

tammyt

New Zenner

Join Date:
Jun 2007
Posts:
11
Plugin Contributions:
0

Customer telephone required?

Can I turn off or remove the requirement for the customer's telephone number in the account creation? My products are all virtual and I really don't have a need for the number.

Thanks!

22 Apr 2008, 5:47 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,182
Plugin Contributions:
0

Re: Customer telephone required?

tammyt:

Can I turn off or remove the requirement for the customer's telephone number in the account creation? My products are all virtual and I really don't have a need for the number.

Thanks!

T,
Yes you can, you half to edit two files

  1. admin panel/ configuration/ minimum values
    A. set this to 0
  2. this will make a little adjustment
  3. If you do not want it to show you will half to edit the english.php
22 Apr 2008, 6:20 PM
#3
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,182
Plugin Contributions:
0

Re: Customer telephone required?

tammyt:

Can I turn off or remove the requirement for the customer's telephone number in the account creation? My products are all virtual and I really don't have a need for the number.

Thanks!

Just an update:
If you want to totally remove the Telephone & Fax Lines from the Customer Registration:

includes/ templates/ your_custom_template/ template/ tpl_modules_create_account.php

Find the following:

<fieldset>
<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>': ''); ?>

<?php
  if (ACCOUNT_FAX_NUMBER == 'true') {
?>
<br class="clearBoth" />
<label class="inputLabel" for="fax"><?php echo ENTRY_FAX_NUMBER; ?></label>
<?php echo zen_draw_input_field('fax', '', 'id="fax"') . (zen_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span class="alert">' . ENTRY_FAX_NUMBER_TEXT . '</span>': ''); ?>
<?php
  }
?>
</fieldset>
```Just copy and delete the code from the .php file1. Save
2. ftp back up on the server
22 Apr 2008, 6:32 PM
#4
tammyt avatar

tammyt

New Zenner

Join Date:
Jun 2007
Posts:
11
Plugin Contributions:
0

Re: Customer telephone required?

Thank you so much!
It worked perfectly!:clap:

22 Apr 2008, 6:50 PM
#5
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,182
Plugin Contributions:
0

Re: Customer telephone required?

You are most welcome, Glad I could assist you..

29 May 2010, 10:46 PM
#6
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

Re: Customer telephone required?

Hello,

Haredo I implemented this mod a while back and then a few months ago came across this problem.. any ideas on how to fix this?

I'm using Zen Cart v1.3.9c

Thanks.

22 Oct 2010, 12:49 AM
#8
finlander avatar

finlander

Zen Follower

Join Date:
Oct 2010
Location:
Idaho
Posts:
293
Plugin Contributions:
0

Re: Customer telephone required?

Frank18, that mod looks great, and I want to try it, but I have an english.php file in includes/languages/CUSTOM directory, that I think was installed by a different mod, but I'm not sure.

What to do, what to do. Suppose I'll have to compare the two english.php files line-by-line and merge the differences. Darn.

22 Oct 2010, 2:53 AM
#9
finlander avatar

finlander

Zen Follower

Join Date:
Oct 2010
Location:
Idaho
Posts:
293
Plugin Contributions:
0

Re: Customer telephone required?

Great mod, but I've decided not to use this mod for a couple of reasons.

  1. There are too many improvements since 2006 (when these files were released) in the two create_account files. I don't want to overwrite the newer/better create_account files with these older files.

  2. The custom english.php is only used to remove the asterisk and store a custom copy of the english.php instead of altering Zen Cart's native english.php. Since I only really want to remove the asterisk (after setting minimum value to 0 or blank), I can do that with one very simple code edit in my current, 2010, custom english.php.

This mod is cool, but I don't need to remove the Telephone field entirely from the Create Account page, and the old 2006 create_account files are outdated, at least in terms of code improvement/refinement since then. However, the guts of this mod could still be used (econcepts code in both create_account files) w/ Zen Cart's newer create_account files, to have the best of both worlds.

Jim

22 Oct 2010, 3:08 AM
#10
finlander avatar

finlander

Zen Follower

Join Date:
Oct 2010
Location:
Idaho
Posts:
293
Plugin Contributions:
0

Re: Customer telephone required?

I really went and did it this time!

Just kidding.

Anyone know how to do the uninstall jazz for the admin panel so that showing/hiding Telephone Number won't be a choice in Customer Details? I got rid of the custom create_account files that I had installed with the mod, so no need now to have this dead option in Admin Customer Details.

Thanks..

22 Oct 2010, 5:34 AM
#11
lat9 avatar

lat9

Administrator

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

Re: Customer telephone required?

Why not just disable the telephone/fax number requirement via your admin's Configuration->Customer Details?

Works for v1.3.8 and later ...

22 Oct 2010, 11:56 AM
#12
daltonkost avatar

daltonkost

Zen Follower

Join Date:
Oct 2009
Location:
Smack in the Middle
Posts:
127
Plugin Contributions:
0

Re: Customer telephone required?

Why not just disable the telephone/fax number requirement via your admin's Configuration->Customer Details?

For me, this eliminates the fax field from the account creation page, but still shows the telephone # as a required field.

Don't want to eliminate the fields, just have the telephone # be not required.

Best Regards

Dalton

22 Oct 2010, 3:25 PM
#13
lat9 avatar

lat9

Administrator

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

Re: Customer telephone required?

daltonkost:

For me, this eliminates the fax field from the account creation page, but still shows the telephone # as a required field.

Don't want to eliminate the fields, just have the telephone # be not required.

Best Regards

Dalton

Two more updates are required:

  1. Admin->Configuration->Minimum Values->Telephone Number->0
  2. Edit /includes/languages/YOURTEMPLATE/english.php. For v1.3.9f, line 241 is currently:
define('ENTRY_TELEPHONE_NUMBER_TEXT', '*');

change it to

define('ENTRY_TELEPHONE_NUMBER_TEXT', '');
22 Oct 2010, 9:14 PM
#14
daltonkost avatar

daltonkost

Zen Follower

Join Date:
Oct 2009
Location:
Smack in the Middle
Posts:
127
Plugin Contributions:
0

Re: Customer telephone required?

Thank You!!

That worked perfectly.

Best Regards

Dalton