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

I need telephone number required

Locked

Views: 14,452

Results 21 to 30 of 30
This thread is locked. New replies are disabled.
14 Mar 2008, 3:25 PM
#21
georgiadoodle avatar

georgiadoodle

New Zenner

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

I need telephone number required

I had this situation arise and the reason it happened is because people were using Paypal express checkout. That bypassed the whole login/create account screen and instead got their info from paypal, which didn't include the phone number or date of birth. So technically they never created an account.

Hope that helps someone, it had me confused for awhile!

Georgia Doodle
www.littlesnowbird.com
Flavored Teas for Children

14 Mar 2008, 8:28 PM
#22
mauryg avatar

mauryg

Zen Follower

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

Re: I need telephone number required

georgiadoodle:

I had this situation arise and the reason it happened is because people were using Paypal express checkout. That bypassed the whole login/create account screen and instead got their info from paypal, which didn't include the phone number or date of birth. So technically they never created an account.

Hope that helps someone, it had me confused for awhile!

Which is only one of the reasons why I removed the PayPal express checkout button from the cart page. The PayPal button is on the checkout_payments page if they choose to use PayPal, but they have to go thru my cart process, including login/create account, first. The main reason I did that was we want credit card customers to use our regular CC payment gateway because the fees are lower than PayPal.

11 Feb 2010, 8:33 AM
#23
dionymnia avatar

dionymnia

New Zenner

Join Date:
Feb 2010
Posts:
1
Plugin Contributions:
0

Re: I need telephone number required

Thanks, mauryg - this worked perfectly.

Reviving a pretty old thread, maybe, but I wanted to acknowledge that it definitely worked, and I'm certainly grateful! ;)

  • D

mauryg:

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.
16 Feb 2010, 8:17 PM
#24
tool_pusher avatar

tool_pusher

New Zenner

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

Re: I need telephone number required

Well, I am not usually able to answer these but I had the same problem when I started.

I found that my paypal account was set not to require phone numbers. After I changed it in Paypal, No Problems

13 Mar 2010, 7:11 PM
#25
crunch avatar

crunch

Zen Follower

Join Date:
Mar 2009
Posts:
227
Plugin Contributions:
0

Re: I need telephone number required

Just discovered the same behavior on my site. Customer Telephone number is missing when they order using PayPal payment (I have express setup).

I checked and went to the "Check out with PayPal" link and within "Enter payment details or log in" there is a field for "Home Telephone".

Tool Pusher -
Where in your PayPal profile did you make the telephone number a required field? I can't find anything like this in the PayPal profile.

13 Mar 2010, 7:36 PM
#26
crunch avatar

crunch

Zen Follower

Join Date:
Mar 2009
Posts:
227
Plugin Contributions:
0

Re: I need telephone number required

Found it

PayPal -> Profile -> Website Payment Preferences -> Contact telephone number (choose either On Optional, On Required, Off)

Apparently, PayPal recommends Off.

25 Mar 2010, 3:07 PM
#27
greengreetings avatar

greengreetings

Zen Follower

Join Date:
May 2009
Location:
Virginia
Posts:
90
Plugin Contributions:
0

Re: I need telephone number required

I have a similar problem with needing the telephone number required. My problem however is that on the create_account.php page, no Telephone Number input field appears; however it is there on my Spanish language create_account.php page.

What code do I input or what setting do I change to have the Telephone Number field show on the page?

1 Apr 2010, 7:06 PM
#28
aly22 avatar

aly22

Zen Follower

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

Re: I need telephone number required

I notice that for registration, I have telephone required which is fine. But I also offer local delivery options and NEED to have a phone number entered as well for shipping RECIPIENTS. The telephone field does NOT show for shipping information entries. How can I add it there?

21 Apr 2010, 8:01 PM
#29
alteredvision avatar

alteredvision

New Zenner

Join Date:
Feb 2010
Posts:
41
Plugin Contributions:
0

Re: I need telephone number required

I need the Phone number to be able to be added on the ordering page too.

23 Jun 2010, 2:39 PM
#30
beco1979 avatar

beco1979

New Zenner

Join Date:
Mar 2009
Posts:
31
Plugin Contributions:
0

Re: I need telephone number required

I also need the telephone number to be added and required on the change address page. Anyone any ideas?