STREAMLINED LOGIN PROCESS (First Name, Last Name, Country and Email)
Having tried a few of the methods mentioned in this thread I have finally managed to sort the problem out (for my needs anyway). Some of the methodology explained previously really messed up my ADMIN side of the store. ADMIN - CUSTOMERS stated at least four "array" errors and would not update the CUSTOMER edit functions (everything was blank). The same method also caused major problems in the SQL database as it was not passed the correct information.
Caution - I am no CSS / PHP guru and the following is used at your own discretion and at your own risk. Alwyas create your own template file and edit that one, NOT the original supplied with ZEN (that way yoou can roll back if it doesn't work - I have learnt this the very hard way!!).
Due to the various array problems I have resigned myself to the fact that I will have to live with First Name, Last Name, Country and Email. Ideally I would have liked to have binned the Country element but haven't managed it without the mess.
Previous posts asked for a step by step process...
So, for what it's worth, here goes............
STEP 1 - In Admin control panel, Configuration, Customer Details;
Set Email salutation, DoB, Company, Address Line 2, State, Fax Number to false.
STEP 2 - In Admin control panel, Configuration, Minimum Values;
Set Nick Name, Date of Birth, Street Address, Company, Post Code, City, State, Telephone Number to blank.
NB - To blank, not to zero!
**STEP 3 - ** Your_store_folder/includes/languages/your_template/english.php
a) define('ENTRY_STREET_ADDRESS_TEXT', '*'); *Remove (removes the required *)
b) define('ENTRY_POST_CODE_TEXT', '*'); *Remove (removes the required *)
c) define('ENTRY_CITY_TEXT', '*');**Remove * ** (removes the required *)
d) define('ENTRY_TELEPHONE_NUMBER_TEXT', '*'); *Remove (removes the required *)
**Step 4 - **Your_store_folder/includes/templates/your_template/templates/tpl_modules_create_account.php
a) <label class="inputLabel" for="street-
address"><?php echo ENTRY_STREET_ADDRESS; ?></label>
<?php echo zen_draw_input_field('street_address', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_street_address', '40') . ' id="street-address"') . (zen_not_null(ENTRY_STREET_ADDRESS_TEXT) ? '<span class="alert">' . ENTRY_STREET_ADDRESS_TEXT . '</span>': ''); ?>
<br class="clearBoth" /> Commented out (<!--....-->) (removes Street Address Field)
b) <label class="inputLabel" for="city"><?php echo ENTRY_CITY; ?></label>
<?php echo zen_draw_input_field('city', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_city', '40') . ' id="city"') . (zen_not_null(ENTRY_CITY_TEXT) ? '<span class="alert">' . ENTRY_CITY_TEXT . '</span>': ''); ?>
<br class="clearBoth" /> Commented out (<!--....-->) (removes City Field)
c) <label class="inputLabel" for="postcode"><?php echo ENTRY_POST_CODE; ?></label>
<?php echo zen_draw_input_field('postcode', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '40') . ' id="postcode"') . (zen_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="alert">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?>
<br class="clearBoth" /> Commented out (<!--....-->) (Removes Post Code Field)
d) <legend><?php echo TABLE_HEADING_PHONE_FAX_DETAILS; ?></legend> Commented out (<!--....-->) (Removed the phone and fax table)
e) <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>': ''); ?> **
Commented out (<!--....-->)** (Removed Telephone Field)
**Step 5 - ** Your_store_folder/includes/languages/english/your_template/create_account_success.php
define('PRIMARY_ADDRESS_TITLE', 'Your Name and Country'); (Altered from Your Address just so things made a little sense on the account success page).
Not sure if there is any set order of the above but the order written is the order I did it in (checking at each stage). I have checked the ADMIN, Customer and all seems fine as does the SQL Address_book and Customer tables.
If it helps someone then it was worth it! Now I can get on with uploading all the juicy products!
Or I could of if my hosting company hadn't just (literally as I post) suspended my account due to a server overload! I must get a lot more traffic than I thought. Not bad for a shop with no products!!
When I am back up and running I will post a link to this thread so that you can check it works.
Go figure!!