Zen Cart Logo
Forums / All Other Contributions/Addons / No phone requirement when creating account

No phone requirement when creating account

Locked

Views: 1,057

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
16 Aug 2006, 4:59 AM
#1
free_bird avatar

free_bird

New Zenner

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

No phone requirement when creating account

I have saw a few threads in the forum about people wanting to make the phone number NOT REQUIRED during account creation, with no REAL answers as to how to go about doing it.

Well, I'm not very good with php, but I figured it out, anyway. Thought I'd share.

in includes/templates/template_default/templates/tpl_modules_create_account.php
on line 118....

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

change to....

<?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) ? '' . ENTRY_TELEPHONE_NUMBER_TEXT . '(not required)': You will also want to do this for the tpl_account_edit_default.php (same folder) on line 57, or if the customer ever changes any details (like password), they would then have to enter a phone number. Then in admin-configuration, edit "phone number" to be blank (NOT 0 !!!!). Now *(not required) will show up beside the phone number input box in the font color of your body text, all without ANY ERRORS!! Best of all, your customers can create an account without that bit of personal information that will run some of them off! Helpfull to the community?.......................I hope so. Happy Zenning!
17 Aug 2006, 9:37 PM
#3
free_bird avatar

free_bird

New Zenner

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

Re: No phone requirement when creating account

Yep, you're right gilby, but as you know, a person could spend a lifetime in these forums reading all the problems, answers, fixes, suggestions. Just missed that one. Thanks for the point in that direction.