Dr. Byte,
I have phpBB managing all the user data that includes address, phone number, and various other things.
I had found the code I posted in the header.php file. I believe I have a good handle on the way that zen cart handles the user data now.
There are two additional things I need to do that will allow a user to change their information and that change will affect the phpBB user database and the newly populated zen cart database tables. I believe that change would take place in this file: /includes/templates/YOUR_TEMPLATE/templates/tpl_account_edit_default.php and the associated header_php.php file which I believe is:
/includes/modules/pages/account_edit/header_php.php
Finally, I would like to have people register using the phpBB database, so I need to replace the new-account fields on the bottom half of the login page with a link back to the phpBB registration page. I'm assuming that would be located here:
/includes/templates/YOUR_TEMPLATE/templates/tpl_login_default.php
Specifically, here:
andCode:<fieldset> <legend><?php echo HEADING_RETURNING_CUSTOMER; ?></legend> <label class="inputLabel" for="login-email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label> <?php echo zen_draw_input_field('email_address', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_email_address', '40') . ' id="login-email-address"'); ?> <br class="clearBoth" /> <label class="inputLabel" for="login-password"><?php echo ENTRY_PASSWORD; ?></label> <?php echo zen_draw_password_field('password', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_password') . ' id="login-password"'); ?> <br class="clearBoth" /> </fieldset> <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_LOGIN, BUTTON_LOGIN_ALT); ?></div> <div class="buttonRow back important"><?php echo '<a href="' . zen_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></div> </form> <br class="clearBoth" />
Thoughts?Code:<?php echo zen_draw_form('create_account', zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'), 'post', 'onsubmit="return check_form(create_account);"') . zen_draw_hidden_field('action', 'process') . zen_draw_hidden_field('email_pref_html', 'email_format'); ?> <fieldset> <legend><?php echo HEADING_NEW_CUSTOMER; ?></legend> <div class="information"><?php echo TEXT_NEW_CUSTOMER_INTRODUCTION; ?></div> <?php require($template->get_template_dir('tpl_modules_create_account.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_create_account.php'); ?> </fieldset>



