Forums / Managing Customers and Orders / I need telephone number required

I need telephone number required

Locked

Views: 14,452

Results 1 to 20 of 30
This thread is locked. New replies are disabled.
19 Dec 2007, 4:22 AM
#1
invizix avatar

invizix

New Zenner

Join Date:
Oct 2007
Posts:
27
Plugin Contributions:
0

I need telephone number required

Hi all,

We have noticed several customers have created a profile with us, however they did not leave a telephone number, even though it is set to required?

How do we definately make it a required field?

We need this in case a product goes out of stock, and/or for further verfication purposes.

Thanks in advance.

19 Dec 2007, 5:08 AM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,668
Plugin Contributions:
0

Re: I need telephone number required

What do you have for the required number of characters for the field?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

21 Dec 2007, 3:44 AM
#3
invizix avatar

invizix

New Zenner

Join Date:
Oct 2007
Posts:
27
Plugin Contributions:
0

Re: I need telephone number required

Kim:

What do you have for the required number of characters for the field?

Hi Kim,

Currently we have 3, should we change this to 10?

21 Dec 2007, 6:41 AM
#4
psychicpet avatar

psychicpet

Inactive

Join Date:
Sep 2007
Posts:
44
Plugin Contributions:
0

Re: I need telephone number required

I am having this same exact problem! Phone number is set to required but customers are able to skip it.

21 Dec 2007, 8:45 AM
#5
rlfreshwater avatar

rlfreshwater

New Zenner

Join Date:
Oct 2007
Location:
Atlanta, GA
Posts:
79
Plugin Contributions:
0

Re: I need telephone number required

I'm also having the same problem, but I can't even find where to change the required characters. I thought it was under Configuration > Customer Details. I see fax .... but no phone.

21 Dec 2007, 4:53 PM
#6
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,668
Plugin Contributions:
0

Re: I need telephone number required

Admin> Configuration> Minimums

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

22 Dec 2007, 12:06 AM
#7
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: I need telephone number required

It could also be that people are just using the Space bar to enter blank spaces as characters.

Haven't checked so not sure if Zen Cart actually checks the input field to make sure numbers are being entered. If not, blank spaces, letters, etc. would be considered as valid input.

The learning is in the doing.

Potent Products

22 Dec 2007, 12:18 AM
#8
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,668
Plugin Contributions:
0

Re: I need telephone number required

Spaces are not considered valid and will throw warnings that there is input needed.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

22 Dec 2007, 3:30 AM
#9
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: I need telephone number required

If what you say is true Kim, and there is no reason to doubt otherwise, then it is a most curious situation indeed; when people can get around providing no input for a required field.

Perhaps people with this particular problem could also provide details on what ZC version they are using and, to their knowledge, when the problem started?

The learning is in the doing.

Potent Products

8 Jan 2008, 9:34 PM
#10
elegantgowns avatar

elegantgowns

New Zenner

Join Date:
Jan 2008
Location:
California
Posts:
10
Plugin Contributions:
0

Re: I need telephone number required

I'm having the same problem too, but not seeing the fix. I already have the minimum requirement set at 10, but it is still allowing customers to skip their phone number.

29 Feb 2008, 1:04 PM
#11
zzzoom avatar

zzzoom

New Zenner

Join Date:
Jan 2006
Posts:
54
Plugin Contributions:
0

Re: I need telephone number required

I too am having the same issue, and I THINK the orders don't come through. I have had a couple custs fill in all there contact info except DOB and Phone. I need both. The phone field is set to min 10. Then I had a cust contact me about their order, but there was no order. Told them to add phone and resubmit and it came through the second time. Does anyone have the fix?

Tx
Zzzoom

29 Feb 2008, 1:14 PM
#12
zzzoom avatar

zzzoom

New Zenner

Join Date:
Jan 2006
Posts:
54
Plugin Contributions:
0

Re: I need telephone number required

I would like to add this to my last post. After writing the post, I went back and tried to bypass the DOB and phone. It errored like it should saying which missing fields were required. I tried in IE and Firefox browsers and both are working properly. So, I am still puzzled how I received all of the other custs info but they were able to bypass.

29 Feb 2008, 3:05 PM
#13
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: I need telephone number required

The best person to get an answer from would be the Customer who has mangaged to place an Order without providing the necessary information.

The learning is in the doing.

Potent Products

29 Feb 2008, 4:36 PM
#14
zzzoom avatar

zzzoom

New Zenner

Join Date:
Jan 2006
Posts:
54
Plugin Contributions:
0

Re: I need telephone number required

I did contact them via email and asked them to reorder or email me so as I can try to find out what they did or didn't do. But thanks!

1 Mar 2008, 2:00 PM
#15
zzzoom avatar

zzzoom

New Zenner

Join Date:
Jan 2006
Posts:
54
Plugin Contributions:
0

Re: I need telephone number required

Same here. Custs bypass phone number. I have min set to 10. I have tried to test it from my system and it will not let me bypass even if I try using the spacebar. Anyone have any updated solution to try?
tx zzzoom

8 Mar 2008, 8:18 PM
#16
daneh avatar

daneh

Zen Follower

Join Date:
Dec 2007
Location:
Southern Maine
Posts:
268
Plugin Contributions:
0

Re: I need telephone number required

I too have had two customers place orders and no telephone number was recorded. Lo and behold, I had to contact BOTH!!! A little difficult to do without the phone number:(. One responded to email, the other I had to track down via web.

The most recent customer is positive she put it in because she ordered from Canada, and she needed the number on the package.

Does adding the dashes make a difference? I will do a few tests, but I wonder if that could be it....

Zen 1.3.8

http://mistkits.com/

9 Mar 2008, 1:53 AM
#17
zzzoom avatar

zzzoom

New Zenner

Join Date:
Jan 2006
Posts:
54
Plugin Contributions:
0

Re: I need telephone number required

So, I guess this has still gone unsolved....hmmmm now what?

10 Mar 2008, 4:45 PM
#18
mamasylvia avatar

mamasylvia

Zen Follower

Join Date:
Feb 2008
Posts:
379
Plugin Contributions:
0

Re: I need telephone number required

I actually have the flip-side problem. I do NOT want the phone number to be required, have the minimum # of characters set to 0, but when you register on my site the phone # shows as required and won't let you bypass it. I was hoping that whatever you changed to make it required, I could change to make it not required. :frusty:

Sylvia
PM at your own risk, I don't check in regularly!
MamaSylvia.com My ZenCart tutorial

11 Mar 2008, 7:49 PM
#19
mauryg avatar

mauryg

Zen Follower

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

Re: I need telephone number required

mamasylvia:

I actually have the flip-side problem. I do NOT want the phone number to be required, have the minimum # of characters set to 0, but when you register on my site the phone # shows as required and won't let you bypass it. I was hoping that whatever you changed to make it required, I could change to make it not required. :frusty:

If you want to hide the telephone number field altogether, there is a 'Hide Telephone Number' mod from econcepts which works. It will also let you have it show and be optional.
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=495
If you want to do something yourself:

  1. The language which controls the display of the telephone number field is in includes/templates/templatedefault/templates/tpl_modules_create_account.php ( or in includes/templates/YOURTEMPLATE/templates/tpl_modules_create_account.php if you use a custom template). ```
<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> ```You can comment it out to remove the field. Then, 2. The code that checks for the correct number of digits being entered and 'makes' the field required by popping up the error is in includes/modules/create_account.php (around line 230). ``` if (strlen($telephone) < ENTRY_TELEPHONE_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_TELEPHONE_NUMBER_ERROR); } ```If you comment that out, it won't check for the error. 3. The code that puts the little red * next to the phone number field is in includes/languages/english.php (or in includes/languages/YOURTEMPLATE/english.php). Change ``` define('ENTRY_TELEPHONE_NUMBER_TEXT', '*'); ``` to ``` define('ENTRY_TELEPHONE_NUMBER_TEXT', ''); ``` Hope this helps.
12 Mar 2008, 4:11 AM
#20
mamasylvia avatar

mamasylvia

Zen Follower

Join Date:
Feb 2008
Posts:
379
Plugin Contributions:
0

Re: I need telephone number required

Thanks, Mauryg. I'm not knowledgable enough to use mods yet -- tried one and couldn't even figure out how to install it. I just wish there was a switch in ZC somewhere to make the phone # optional. (I do want people to be able to enter their phone, I just don't want them to feel like they HAVE to.)

Sylvia
PM at your own risk, I don't check in regularly!
MamaSylvia.com My ZenCart tutorial