nana Posted December 10, 2005 Author Share Posted December 10, 2005 akmac to make the page to look like what you want although is not very hard .unfortunatly i really do not have so much of free time on my hand at the moment have to also make a living you know Quote Link to comment Share on other sites More sharing options...
Guest Posted December 11, 2005 Share Posted December 11, 2005 Need help! My cart info is being completely lost when the user clicks over to SSL - does anybody have any idea how this could be happening? Just started happening recently.... Quote Link to comment Share on other sites More sharing options...
safoo Posted December 12, 2005 Share Posted December 12, 2005 Need help! My cart info is being completely lost when the user clicks over to SSL - does anybody have any idea how this could be happening? Just started happening recently.... Not sure why you are posting on this thread as it probably isn't caused by FEC. Do a search on the forums for your issue. I would think it is a cookie/session setting issue. Quote Link to comment Share on other sites More sharing options...
♥akmac Posted December 12, 2005 Share Posted December 12, 2005 Understandable-can you help my diagnose why both create_account.php and create_account3.php (in the contribution) are requiring passwords? Could that be caused by me still using my (working) checkout_process.php? I understand that you are donating your time, and I appreciate it. Will appreciate it more when/if I get it to work. I'm sure it's my own error, or a conflict with one of many installed mods/hacks, but I need help fixing it. Quote Quidquid latine dictum sit, profundum viditur. Link to comment Share on other sites More sharing options...
nana Posted December 12, 2005 Author Share Posted December 12, 2005 akmac i will take a look at both your issues when i get home i have a few questions 1- by requiring password do you mean you have the popup shows that you need password or is it an error message in the page and is your checkout_process.php the same you have posted before? Quote Link to comment Share on other sites More sharing options...
nana Posted December 12, 2005 Author Share Posted December 12, 2005 (edited) stacey i do not think your problem has anything to do with fec as safoo mentioned it is more probably a session or configuration problem Edited December 12, 2005 by nana Quote Link to comment Share on other sites More sharing options...
♥akmac Posted December 12, 2005 Share Posted December 12, 2005 akmac i will take a look at both your issues when i get homei have a few questions 1- by requiring password do you mean you have the popup shows that you need password or is it an error message in the page and is your checkout_process.php the same you have posted before? Nana, Yes, it gives me the "password must contain 5 characters etc" error message-even though the password fields aren't there. Yes, I posted the working checkout_process.php earlier-I can again if you need. Quote Quidquid latine dictum sit, profundum viditur. Link to comment Share on other sites More sharing options...
darvidc Posted December 13, 2005 Share Posted December 13, 2005 Hi, I have followed the instructions step by step as laid out in the part 1 and 2 files but come across the following error when i click on the create account button on my site: Also on my home page now there is this following error: I really like the idea of this mod and it's something i've been looking for to use with my other site for a while but i can't seem to get this cracked. Can anyone point me in the right direction? Many Thanks D4 Warning: main(login_box.php): failed to open stream: No such file or directory in /home/darvidc/public_html/catalog/create_account.php on line 377 Fatal error: main(): Failed opening required 'login_box.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/darvidc/public_html/catalog/create_account.php on line 377 Hej I'm geting the same error as above, when i click the 'Go to Cart' button. I've double checked everything and I've tried puting the *box.php files in different directories --- where should they go? It doesn't say anywhere in the instructions??? When unpacked them they are under /includes/fec whats that? Can anybody please help? Thanks David C Quote Link to comment Share on other sites More sharing options...
♥akmac Posted December 13, 2005 Share Posted December 13, 2005 David, Upload the fec folder, and all it's contents to the catalog/includes directory. You'll then need to change the paths in the create_account pages from: { require('login_box.php to { require('includes/fec/login_box.php You'll need to change this in two places on each page :create_account.php and create_account3.php (or in whichever one you plan to use) Nana, Thanks for the PM-the checkout_process.php works perfectly-thanks! I made the changes to the form_check.js.php and I can now use create_account3.php without entering passwords, but it still gives me the "password must contain 5 characters etc" error in create_account2.php (your create_account.php). One thing that is different, is that instead of giving me the error in a pop up box like it did previously, it now redirects me from create_account2.php to create_account.php and gives me the error on the page with highlighting. I tried replacing my create_account2.php with the stock create_account.php supplied in the contribution, but got the same result. So, what is it in create_account3.php that allows it to function without a password, that isn't included in create_account.php? This and the orders.php are the last two things I'll bug you with-promise! Quote Quidquid latine dictum sit, profundum viditur. Link to comment Share on other sites More sharing options...
darvidc Posted December 13, 2005 Share Posted December 13, 2005 David,Upload the fec folder, and all it's contents to the catalog/includes directory. You'll then need to change the paths in the create_account pages from: { require('login_box.php to { require('includes/fec/login_box.php You'll need to change this in two places on each page :create_account.php and create_account3.php (or in whichever one you plan to use) Nana, Thanks for the PM-the checkout_process.php works perfectly-thanks! I made the changes to the form_check.js.php and I can now use create_account3.php without entering passwords, but it still gives me the "password must contain 5 characters etc" error in create_account2.php (your create_account.php). One thing that is different, is that instead of giving me the error in a pop up box like it did previously, it now redirects me from create_account2.php to create_account.php and gives me the error on the page with highlighting. I tried replacing my create_account2.php with the stock create_account.php supplied in the contribution, but got the same result. So, what is it in create_account3.php that allows it to function without a password, that isn't included in create_account.php? This and the orders.php are the last two things I'll bug you with-promise! Thanks akmac, worked as it should now. Only one question though what about calls to the other *_box.php files in the /fec directory, don't their paths have to be updated in other files also? Thanks David C Quote Link to comment Share on other sites More sharing options...
♥akmac Posted December 13, 2005 Share Posted December 13, 2005 Thanks akmac, worked as it should now. Only one question though what about calls to the other *_box.php files in the /fec directory, don't their paths have to be updated in other files also? Thanks David C It would seem so, but that is the only fix mentioned. My fingers are crossed too. Quote Quidquid latine dictum sit, profundum viditur. Link to comment Share on other sites More sharing options...
nana Posted December 13, 2005 Author Share Posted December 13, 2005 cleve you have to make the changes to create_account2.php that you made for the hide password to create_account3.php. did you try the box that i sent you this would give the two addresses and comment in one box what is order.php? david he is correct i also have this pointed out in the contribution section and probably in a couple of post after the original question i f i remember Quote Link to comment Share on other sites More sharing options...
Skeetergirl Posted December 13, 2005 Share Posted December 13, 2005 (edited) Can I use this mod IF I also have items that have free shipping YET need a shipping address passed on to PayPay? Thanks Edit to add: IF so how? Edited December 13, 2005 by Skeetergirl Quote Link to comment Share on other sites More sharing options...
Guest Posted December 13, 2005 Share Posted December 13, 2005 yes i figured this out - it was a sessions problem. Quote Link to comment Share on other sites More sharing options...
♥akmac Posted December 14, 2005 Share Posted December 14, 2005 cleveyou have to make the changes to create_account2.php that you made for the hide password to create_account3.php. did you try the box that i sent you this would give the two addresses and comment in one box what is order.php? david he is correct i also have this pointed out in the contribution section and probably in a couple of post after the original question i f i remember Nana, I just tried those-same error. Here is my create_account2.php: <?php /* $Id: create_account.php,v 1.65 2003/06/09 23:03:54 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ /////////////////////////////////////// //configuration $show_account_box = 1; //IF you want to give the option to create an account with random password choose to 0 if not $create_password = 0;// set to 1 to create an account with random password $show_login=1;// set to 1 to show login box //////////////////////////////////////////// require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . 'fast_account.php'); if ((tep_session_is_registered('customer_id'))&&(tep_session_is_registered('createaccount'))) { tep_redirect(tep_href_link('account_password_new.php', '', 'SSL')); } if (tep_session_is_registered('customer_id')) { tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'SSL')); } // needs to be included earlier to set the success message in the messageStack require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CREATE_ACCOUNT); $process = false; if (isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process')) { //START REGISTRATION CODE $formlogin = tep_db_prepare_input($HTTP_POST_VARS['form_login']); //next two lines gives you a temporary fixed password you can change to what you like $createaccount = tep_db_prepare_input($HTTP_POST_VARS['createaccount']); //start type one create account //FORMLOGIN=1 WHEN CREATE ACCOUNT IS MANDATORY if($fromlogin==1){ $createaccount='Y'; $password = tep_db_prepare_input($HTTP_POST_VARS['password']); $confirmation = tep_db_prepare_input($HTTP_POST_VARS['confirmation']); } //THIS IS WHEN A CHECK BOX INVITES TO HAVE AN ACCOUNT if ($create_password == 1) { $createaccount = tep_db_prepare_input($HTTP_POST_VARS['createaccount']); if ($createaccount!='Y')$createaccount='N'; $password = tep_create_random_value(15); $confirmation = $password; } //THIS IS WHEN CUSTOMER CHOOSES WITH PASSWORD //start type two create account if ($show_account_box == 1) { $createaccount = tep_db_prepare_input($HTTP_POST_VARS['createaccount']); if ($createaccount!='Y')$createaccount='N'; if ($createaccount=='Y') { $password = tep_db_prepare_input($HTTP_POST_VARS['password']); $confirmation = tep_db_prepare_input($HTTP_POST_VARS['confirmation']); }else{ $password = tep_create_random_value(15); $confirmation = $password; } } $process = true; // $createaccount = tep_db_prepare_input($HTTP_POST_VARS['createaccount']); // if ($createaccount== '') $createaccount='Y'; if (ACCOUNT_GENDER == 'true') { if (isset($HTTP_POST_VARS['gender'])) { $gender = tep_db_prepare_input($HTTP_POST_VARS['gender']); } else { $gender = false; } } $firstname = tep_db_prepare_input($HTTP_POST_VARS['firstname']); $lastname = tep_db_prepare_input($HTTP_POST_VARS['lastname']); if (ACCOUNT_DOB == 'true') $dob = tep_db_prepare_input($HTTP_POST_VARS['dob']); $email_address = tep_db_prepare_input($HTTP_POST_VARS['email_address']); if (ACCOUNT_COMPANY == 'true') $company = tep_db_prepare_input($HTTP_POST_VARS['company']); $street_address = tep_db_prepare_input($HTTP_POST_VARS['street_address']); if (ACCOUNT_SUBURB == 'true') $suburb = tep_db_prepare_input($HTTP_POST_VARS['suburb']); $postcode = tep_db_prepare_input($HTTP_POST_VARS['postcode']); $city = tep_db_prepare_input($HTTP_POST_VARS['city']); if (ACCOUNT_STATE == 'true') { $state = tep_db_prepare_input($HTTP_POST_VARS['state']); if (isset($HTTP_POST_VARS['zone_id'])) { $zone_id = tep_db_prepare_input($HTTP_POST_VARS['zone_id']); } else { $zone_id = false; } } $country = tep_db_prepare_input($HTTP_POST_VARS['country']); $telephone = tep_db_prepare_input($HTTP_POST_VARS['telephone']); $fax = tep_db_prepare_input($HTTP_POST_VARS['fax']); if (isset($HTTP_POST_VARS['newsletter'])) { $newsletter = tep_db_prepare_input($HTTP_POST_VARS['newsletter']); } else { $newsletter = false; } $error = false; if (ACCOUNT_GENDER == 'true') { if ( ($gender != 'm') && ($gender != 'f') ) { $error = true; $messageStack->add('create_account', ENTRY_GENDER_ERROR); } } if (strlen($firstname) < ENTRY_FIRST_NAME_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_FIRST_NAME_ERROR); } if (strlen($lastname) < ENTRY_LAST_NAME_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_LAST_NAME_ERROR); } if (ACCOUNT_DOB == 'true') { if (checkdate(substr(tep_date_raw($dob), 4, 2), substr(tep_date_raw($dob), 6, 2), substr(tep_date_raw($dob), 0, 4)) == false) { $error = true; $messageStack->add('create_account', ENTRY_DATE_OF_BIRTH_ERROR); } } if (strlen($email_address) < ENTRY_EMAIL_ADDRESS_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_ERROR); } elseif (tep_validate_email($email_address) == false) { $error = true; $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } else { $check_email_query = tep_db_query("select count(*) as total from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'"); $check_email = tep_db_fetch_array($check_email_query); /* if ($check_email['total'] > 0) { $error = true; $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_ERROR_EXISTS); }*/ if ($check_email['total'] > 0) { //PWA delete account $get_customer_info = tep_db_query("select customers_id, customers_email_address, createaccount from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'"); $customer_info = tep_db_fetch_array($get_customer_info); $customer_id = $customer_info['customers_id']; $customer_email_address = $customer_info['customers_email_address']; $customer_pwa = $customer_info['createaccount']; if ($customer_pwa =='Y') { $error = true; $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_ERROR_EXISTS); } else { if (tep_session_is_registered('createaccount')) tep_session_unregister('createaccount'); if (tep_session_is_registered('registered_now')) tep_session_unregister('registered_now'); tep_db_query("delete from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . $customer_id . "'"); tep_db_query("delete from " . TABLE_CUSTOMERS . " where customers_id = '" . $customer_id . "'"); tep_db_query("delete from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . $customer_id . "'"); tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET . " where customers_id = '" . $customer_id . "'"); tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where customers_id = '" . $customer_id . "'"); tep_db_query("delete from " . TABLE_WHOS_ONLINE . " where customer_id = '" . $customer_id . "'"); } } // END } if (strlen($street_address) < ENTRY_STREET_ADDRESS_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_STREET_ADDRESS_ERROR); } if (strlen($postcode) < ENTRY_POSTCODE_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_POST_CODE_ERROR); } if (strlen($city) < ENTRY_CITY_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_CITY_ERROR); } if (is_numeric($country) == false) { $error = true; $messageStack->add('create_account', ENTRY_COUNTRY_ERROR); } if (ACCOUNT_STATE == 'true') { $zone_id = 0; $check_query = tep_db_query("select count(*) as total from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "'"); $check = tep_db_fetch_array($check_query); $entry_state_has_zones = ($check['total'] > 0); if ($entry_state_has_zones == true) { $zone_query = tep_db_query("select distinct zone_id from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "' and (zone_name like '" . tep_db_input($state) . "%' or zone_code like '%" . tep_db_input($state) . "%')"); if (tep_db_num_rows($zone_query) == 1) { $zone = tep_db_fetch_array($zone_query); $zone_id = $zone['zone_id']; } else { $error = true; $messageStack->add('create_account', ENTRY_STATE_ERROR_SELECT); } } else { if (strlen($state) < ENTRY_STATE_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_STATE_ERROR); } } } if (strlen($telephone) < ENTRY_TELEPHONE_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_TELEPHONE_NUMBER_ERROR); } if ($createaccount == 'Y') { if (strlen($password) < ENTRY_PASSWORD_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_PASSWORD_ERROR); } elseif ($password != $confirmation) { $error = true; $messageStack->add('create_account', ENTRY_PASSWORD_ERROR_NOT_MATCHING); } } if ($error == false) { $sql_data_array = array('customers_firstname' => $firstname, 'customers_lastname' => $lastname, 'customers_email_address' => $email_address, 'customers_telephone' => $telephone, 'customers_fax' => $fax, 'customers_newsletter' => $newsletter, 'confirmation_key' => $confirmation, 'createaccount' => $createaccount, 'customers_password' => tep_encrypt_password($password)); if (ACCOUNT_GENDER == 'true') $sql_data_array['customers_gender'] = $gender; if (ACCOUNT_DOB == 'true') $sql_data_array['customers_dob'] = tep_date_raw($dob); tep_db_perform(TABLE_CUSTOMERS, $sql_data_array); $customer_id = tep_db_insert_id(); $sql_data_array = array('customers_id' => $customer_id, 'entry_firstname' => $firstname, 'entry_lastname' => $lastname, 'entry_street_address' => $street_address, 'entry_postcode' => $postcode, 'entry_city' => $city, 'entry_country_id' => $country); if (ACCOUNT_GENDER == 'true') $sql_data_array['entry_gender'] = $gender; if (ACCOUNT_COMPANY == 'true') $sql_data_array['entry_company'] = $company; if (ACCOUNT_SUBURB == 'true') $sql_data_array['entry_suburb'] = $suburb; if (ACCOUNT_STATE == 'true') { if ($zone_id > 0) { $sql_data_array['entry_zone_id'] = $zone_id; $sql_data_array['entry_state'] = ''; } else { $sql_data_array['entry_zone_id'] = '0'; $sql_data_array['entry_state'] = $state; } } tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array); $address_id = tep_db_insert_id(); tep_db_query("update " . TABLE_CUSTOMERS . " set customers_default_address_id = '" . (int)$address_id . "' where customers_id = '" . (int)$customer_id . "'"); tep_db_query("insert into " . TABLE_CUSTOMERS_INFO . " (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values ('" . (int)$customer_id . "', '0', now())"); $shipping_address_query = tep_db_query("select address_book_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "'"); $shipping_address = tep_db_fetch_array($shipping_address_query); $billto = $shipping_address['address_book_id']; $sendto = $shipping_address['address_book_id']; tep_session_register('billto'); tep_session_register('sendto'); $billto = $shipping_address['address_book_id']; $sendto = $shipping_address['address_book_id']; if (SESSION_RECREATE == 'True') { tep_session_recreate(); } $customer_first_name = $firstname; $customer_default_address_id = $address_id; $customer_country_id = $country; $customer_zone_id = $zone_id; tep_session_register('customer_id'); tep_session_register('customer_first_name'); tep_session_register('customer_default_address_id'); tep_session_register('customer_country_id'); tep_session_register('customer_zone_id'); tep_session_unregister('createaccount'); if ($createaccount == 'N') tep_session_register('createaccount'); // restore cart contents $cart->restore_contents(); // build the message content $name = $firstname . ' ' . $lastname; if (ACCOUNT_GENDER == 'true') { if ($gender == 'm') { $email_text = sprintf(EMAIL_GREET_MR, $lastname); } else { $email_text = sprintf(EMAIL_GREET_MS, $lastname); } } else { $email_text = sprintf(EMAIL_GREET_NONE, $firstname); } $email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING; if ($createaccount == 'Y') tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); if ($createaccount == 'Y') { if ($cart->count_contents() > 0) { tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')); } else { tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL')); } } else { tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')); } } } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL')); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <?php require('includes/form_check.js.php'); ?> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"> <table width="64" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="175"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> </table> </td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr height="26"> <td valign="top" height="26"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> </tr> </table></td> </tr> <?php if($fromlogin!=1){ ?> <tr> <td><?php if ($show_login ==1) { require('includes/fec/login_box.php');}else{echo PRIMARY_ADDRESS_DESCRIPTION; } ?></td> </tr> <?php } ?> <td width="100%" valign="top"><?php echo tep_draw_form('create_account', tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'), 'post', 'onSubmit="return check_form(create_account);"') . tep_draw_hidden_field('action', 'process'); ?> <tr> <td class="smallText"></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php if ($messageStack->size('create_account') > 0) { ?> <tr> <td><?php echo $messageStack->output('create_account'); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } ?> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td height="18" class="headerNavigation"> <?php echo LOGINBOX_NEW_CUSTOMER ?></td> <td class="headerNavigation" align="right"><?php echo FORM_REQUIRED_INFORMATION; ?></td> </tr> </table> </td> </tr> <tr> <td> <table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td> <table border="0" cellspacing="2" cellpadding="2"> <?php if (ACCOUNT_GENDER == 'true') { ?> <tr> <td class="main"><?php echo ENTRY_GENDER; ?></td> <td class="main"><?php echo tep_draw_radio_field('gender', 'm') . ' ' . MALE . ' ' . tep_draw_radio_field('gender', 'f') . ' ' . FEMALE . ' ' . (tep_not_null(ENTRY_GENDER_TEXT) ? '<span class="inputRequirement">' . ENTRY_GENDER_TEXT . '</span>': ''); ?></td> </tr> <?php } ?> <tr> <td class="main"><?php echo ENTRY_FIRST_NAME; ?></td> <td class="main"><?php echo tep_draw_input_field('firstname') . ' ' . (tep_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_FIRST_NAME_TEXT . '</span>': ''); ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_LAST_NAME; ?></td> <td class="main"><?php echo tep_draw_input_field('lastname') . ' ' . (tep_not_null(ENTRY_LAST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_LAST_NAME_TEXT . '</span>': ''); ?></td> </tr> <?php if (ACCOUNT_DOB == 'true') { ?> <tr> <td class="main"><?php echo ENTRY_DATE_OF_BIRTH; ?></td> <td class="main"><?php echo tep_draw_input_field('dob') . ' ' . (tep_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="inputRequirement">' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>': ''); ?></td> </tr> <?php } ?> <tr> <td class="main"><?php echo ENTRY_EMAIL_ADDRESS; ?></td> <td class="main"><?php echo tep_draw_input_field('email_address') . ' ' . (tep_not_null(ENTRY_EMAIL_ADDRESS_TEXT) ? '<span class="inputRequirement">' . ENTRY_EMAIL_ADDRESS_TEXT . '</span>': ''); ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_TELEPHONE_NUMBER; ?></td> <td class="main"><?php echo tep_draw_input_field('telephone') . ' ' . (tep_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>': ''); ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_STREET_ADDRESS; ?></td> <td class="main"><?php echo tep_draw_input_field('street_address') . ' ' . (tep_not_null(ENTRY_STREET_ADDRESS_TEXT) ? '<span class="inputRequirement">' . ENTRY_STREET_ADDRESS_TEXT . '</span>': ''); ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_CITY; ?></td> <td class="main"><?php echo tep_draw_input_field('city') . ' ' . (tep_not_null(ENTRY_CITY_TEXT) ? '<span class="inputRequirement">' . ENTRY_CITY_TEXT . '</span>': ''); ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_STATE; ?></td> <td class="main"><?php if ($process == true) { if ($entry_state_has_zones == true) { $zones_array = array(); $zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "' order by zone_name"); while ($zones_values = tep_db_fetch_array($zones_query)) { $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']); } echo tep_draw_pull_down_menu('state', $zones_array); } else { echo tep_draw_input_field('state'); } } else { echo tep_draw_input_field('state'); } if (tep_not_null(ENTRY_STATE_TEXT)) echo ' <span class="inputRequirement">' . ENTRY_STATE_TEXT; ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_POST_CODE; ?></td> <td class="main"><?php echo tep_draw_input_field('postcode') . ' ' . (tep_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_COUNTRY; ?></td> <td class="main"><?php echo tep_get_country_list('country', STORE_COUNTRY) . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td> </tr> </table> </td> </tr> </table> </td> </tr> <?php if (ACCOUNT_COMPANY == 'true') { ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="main"><b><?php echo CATEGORY_COMPANY; ?></b></td> </tr> <tr> <td> <table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td> <table border="0" cellspacing="2" cellpadding="2"> <tr> <td class="main"><?php echo ENTRY_COMPANY; ?></td> <td class="main"><?php echo tep_draw_input_field('company') . ' ' . (tep_not_null(ENTRY_COMPANY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COMPANY_TEXT . '</span>': ''); ?></td> </tr> </table> </td> </tr> </table> </td> </tr> <?php } ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="main"><b><?php echo CATEGORY_OPTIONS; ?></b></td> </tr> <tr> <td> <table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td> <table border="0" cellspacing="2" cellpadding="2"> <tr> <td class="main"><?php echo tep_draw_checkbox_field('newsletter', '1') . ' ' . (tep_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="inputRequirement">' . ENTRY_NEWSLETTER_TEXT . '</span>': ''); ?></td> <td class="main"><?php echo ENTRY_NEWSLETTER; ?></td> </tr> <?php if ($create_password == 1) { if($fromlogin!=1){ ?> <tr> <td class="main"><?php echo YES_ACCOUNT; ?></td> <td class="main"><?php echo tep_draw_checkbox_field('createaccount', 'Y') . ' ' . (tep_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="inputRequirement">' . ENTRY_NEWSLETTER_TEXT . '</span>': '');?></td> </tr> <?php } } ?> </table> </td> </tr> </table> </td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php if ($show_account_box == 1) require('includes/fec/account_box.php'); ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td> <table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php // $fromlogin=1000; echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE).tep_draw_hidden_field('form_login',$fromlogin); ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table> </td> </tr> </table> </td> </tr> </table></form></td> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"> <table width="64" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="175"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> </table> </td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php include(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> I haven't tried the box yet-which box is it meant to replace? Quote Quidquid latine dictum sit, profundum viditur. Link to comment Share on other sites More sharing options...
nana Posted December 14, 2005 Author Share Posted December 14, 2005 (edited) cleve are you sure you hve the correct file this is create_account.php and i can't seem to get error but i am not using the the javascript password box what is order.php box is as you advocated on a diffrent forum deborah you should be able to do anything you do with normal osc very little change in the code stacey glad to hear your problem solved david this seems to be the only places that i forgot to change the path Edited December 14, 2005 by nana Quote Link to comment Share on other sites More sharing options...
Guest Posted December 14, 2005 Share Posted December 14, 2005 Dearest Frank I hope you get a holiday break! Would send a pie your way but I'm a terrible cook :) Quote Link to comment Share on other sites More sharing options...
nana Posted December 14, 2005 Author Share Posted December 14, 2005 thanks stacey cleve i was wondering if you have changed the define in the includes/filename.php from create_account.php to create_account2.php as of now when you are using this file you submit the form to FILENAME_CREATE_ACCOUNT so your changes to this file does not get reflected to your erroe habdelingyou have to either change the define or change FILENAME_CREATE_ACCOUNT to 'create_account2.php' in line 379 this migh resolve your error issue if not then i have o look again Quote Link to comment Share on other sites More sharing options...
darvidc Posted December 14, 2005 Share Posted December 14, 2005 Thanks Everybody, for your help. I've now managed to get through to the final page with the "End Shopping" button at the bottom. There I get 2 errors though: 1. The Heading title is shown as "HEADING_TITLE2" instead of the text I want? I presume its a call to from /account_password_new.php to language/.../checkout_success.php but I havn't got a 'HEADING_TITLE2' definition in my checkout_success.php? 2. Down the bottom is shown the text "ENTRY_CREATEACCOUNT" and under that "MY_PASSWORD_TITLE" instead of some text, I presume these are calls from /account_password_new.php or maybe /account_box.php (as I found an entry there too)? Finally a question concerning Part-2/3 of the install instructions too. Its shown that 20 files are modified but I only found instructions to modify 18? Numbers 16 & 17, that is: # 16include/languages/english/create_account.php # 17-includes/languages/english/account_password.php are not mentioned (as far as i could see) in the document to be altered at all? Hope someone can help.... Thanks in advance David C Quote Link to comment Share on other sites More sharing options...
nana Posted December 14, 2005 Author Share Posted December 14, 2005 you have to add the defines in the language files as you want this contribution is designed so you can change the checkout procedure to the way you want you should start by thinkig how you want the checkout to be and then use the features you want and not the ones you do not and change the language files based on that Quote Link to comment Share on other sites More sharing options...
♥akmac Posted December 14, 2005 Share Posted December 14, 2005 thanks staceycleve i was wondering if you have changed the define in the includes/filename.php from create_account.php to create_account2.php as of now when you are using this file you submit the form to FILENAME_CREATE_ACCOUNT so your changes to this file does not get reflected to your erroe habdelingyou have to either change the define or change FILENAME_CREATE_ACCOUNT to 'create_account2.php' in line 379 this migh resolve your error issue if not then i have o look again You were right! My glorious new checkout process is complete! Thank YOU! I was referring earlier to admin/orders.php having a parse error-I'll see if I can't add the fixes without a closing bracket or something. As an aside, I noticed that when I elect to create an account-I no longer receive the welcome email. Not a big deal, but if you know a fix it would be handy as I use that email to notify customers of some member promotions. THANKS! Quote Quidquid latine dictum sit, profundum viditur. Link to comment Share on other sites More sharing options...
nana Posted December 14, 2005 Author Share Posted December 14, 2005 post your code cleve and i see where the problem is Quote Link to comment Share on other sites More sharing options...
Skeetergirl Posted December 14, 2005 Share Posted December 14, 2005 Hello All, I am running an OSC shop ms2.2. The following question concerns: PayPal_Shopping_Cart_IPN http://www.oscommerce.com/community/contributions,1753/ and fast easy checkout (v2.0) http://www.oscommerce.com/community/contributions,3469/ My qestion: In my PayPal order details I see nothing for Shipping Address except for a comma? Before the installation of fast easy checkout (v2.0). I was getting all the shipping address passed through without a problem. What gives? Where should I even look to correct this problem? For easier understanding of my issue, here is a graphic description of my problem: view here at this url: http://heckys.com/osc.htm Please help!! Thanks in advance, txcrew The workaround that I found for this is to enable "PayPal Shipping Address" but make sure you go to your PayPal account profile and choose that you will only ship to confirmed addresses, that gives the customer ONLY confirmed addresses to choose from when they are taken to the PayPal processing page. This is probably more secure than the other way anyway. HTH. Quote Link to comment Share on other sites More sharing options...
nana Posted December 15, 2005 Author Share Posted December 15, 2005 (edited) thx cleve for your donation and you have a happy holidays too for sending the email you can put this code // build the message content $name = $firstname . ' ' . $lastname; if (ACCOUNT_GENDER == 'true') { if ($gender == 'm') { $email_text = sprintf(EMAIL_GREET_MR, $lastname); } else { $email_text = sprintf(EMAIL_GREET_MS, $lastname); } } else { $email_text = sprintf(EMAIL_GREET_NONE, $firstname); } $email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING; if ($createaccount=='Y') tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); right after // restore cart contents $cart->restore_contents(); and this should do it Edited December 15, 2005 by nana Quote Link to comment Share on other sites More sharing options...
♥akmac Posted December 15, 2005 Share Posted December 15, 2005 This is what I have there currently: // build the message content $name = $firstname . ' ' . $lastname; if (ACCOUNT_GENDER == 'true') { if ($gender == 'm') { $email_text = sprintf(EMAIL_GREET_MR, $lastname); } else { $email_text = sprintf(EMAIL_GREET_MS, $lastname); } } else { $email_text = sprintf(EMAIL_GREET_NONE, $firstname); } $email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING; if ($createaccount == 'Y') tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); if ($createaccount == 'Y') { if ($cart->count_contents() > 0) { tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')); } else { tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL')); } } else { tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')); } } } Also, for anyone who has the Email Subject Contribution installed, this is the code I hacked together in order to get it to work for the second FEC code change in admin/orders.php: // start no account changes & Email Subject Contribution $noaccount_check_query= tep_db_query("select createaccount from " . TABLE_CUSTOMERS . " where customers_id = '" . $cust_id . "'"); $noaccount_check= tep_db_fetch_array($noaccount_check_query); if ($noaccount_check['createaccount'] == 'Y'){ $email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]); } else {$email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]); } tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT_1. $oID . EMAIL_TEXT_SUBJECT_2 . $order_status_array[$status], $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); $customer_notified = '1'; } // end FEC & replacement section for Email Subject contribution I think it works... Quote Quidquid latine dictum sit, profundum viditur. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.