Hi lat9,
No problem, thanks for the reply!
Hi lat9,
No problem, thanks for the reply!
I've submitted v1.2.0 to the Plugins area; it should be available for download in a couple of days:
- Restore the already optional "Gender", "Company", "Date of Birth" and "Fax" fields to the minimum customer information collected. Your store's minimum information will now include these values based on the settings in your admin's Configuration->Customer Details.
- Moved additional language defines from /languages/YOUR_TEMPLATE/english.php to /languages/english/extra_definitions/YOUR_TEMPLATE/minacct.php.
- BUGFIX: Modification to login page's on_load_main.js since the State/Zone portion of create_account is no longer there.
- BUGFIX: The customer's checkout email still included references to shipping and the address information in the email was improperly formatted. Change required to functions_customers.php, to modify the address formatted in a customer's checkout email and to the checkout email template itself.
v1.2.0 is now available in the Plugins area ...
Thanks lat9 working great!
Pascal
Hi,
Thanks for this mod, it has prompted me to upgrade my site from 1.3.9 to 1.5.1 (I broke it doing that)
Site logon page is here http://www.railworks.marleyman.co.uk...ain_page=login
I do seem to have two issues though;
One, I cannot disable the Telephone Number Field. There is not an option in my 'Configuration-Customer Fields' for Telephone. Now, that could be the Template I am using but I thought I would stop by here first and say thanks for the mod and can you check these errors for me. So here I am.
I am using Aberdeen Neutral Template and will contact that author if you cannot help.
The second issue is next to the e-mail box. It has the following text; 'ENTRY_EMAIL_ADDRESS_CONFIRM' before the box and 'ENTRY_EMAIL_ADDRESS_CONFIRM_TEXT' after the box.
Hopefully you can see that when you navigate to the login page.
Any ideas how to disable the phone number and correct that text please?
I should also say I am using version 1.2.0.
1) You cannot currently disable the Telephone Number field, but you can make it optional. To make it optional, go to your admin's Configuration->Minimum Values and set the Telephone Number field to 0. Then, edit /includes/languages/YOUR_TEMPLATE/english.php to change
toCode:define('ENTRY_TELEPHONE_NUMBER_TEXT', '*');
If you really don't want the Telephone Number field to display, you can edit /includes/templates/YOUR_TEMPLATE/templates/tpl_modules_create_account.php (starting at line 129 in the version associated with the plugin) to delete the lines marked in red:Code:define('ENTRY_TELEPHONE_NUMBER_TEXT', '');
The removal of those two lines keeps the base code but extends the min-acct comments to comment-out the lines associated with the Telephone Number's display.Code:<fieldset> <legend><?php echo TABLE_HEADING_PHONE_FAX_DETAILS; ?></legend> -eof-d-minacct */ ?> <hr /> <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>': ''); ?> <br class="clearBoth" /> <hr /> <?php /*-bof-d-minacct if (ACCOUNT_FAX_NUMBER == 'true') { ?> <br class="clearBoth" /> <label class="inputLabel" for="fax"><?php echo ENTRY_FAX_NUMBER; ?></label>
2) The presence of ENTRY_EMAIL_ADDRESS_CONFIRM and ENTRY_EMAIL_ADDRESS_CONFIRM_TEXT imply to me that you didn't rename the directory /includes/languages/YOUR_TEMPLATE before you copied the plugin's files to your installation. That directory holds the override version of the english.php file which holds those defines.
OK, resolved the odd bit of text. Thank you very much for the clue. It was this directory;
\includes\languages\english\extra_definitions\YOUR_TEMPLATE that required updating. I clearly did not look deep enough into the directory structure for Template folders.
I will modify the telephone number part later and I appreciate very much your advice on that part too. My 'store' really is just a Free Download Site so I don't want any more info from a user than absolutely necessary.
Kind regards,
Marleyman