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!



