Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

FEC Problem


WiredOnSite

Recommended Posts

When using my site without FEC (Fast Easy Checkout) everything works just fine...

 

I finally got everthing functioning except that when in create_account1.php when you are not logged in and you can from the shopping cart page redirect...

 

so now you are basically filling out the form without the password & you now have the option to choose (last chance to become a member thingy!)

 

OK that's where you are now...are you with me? LOL

 

When filling out the entire form you get an error..."Please select state from drop-down menu"

 

I did selct a state but lets see & try it again!

 

Now the Title dropdown reset and that sucks so you re choose a title and select a state again...and it gives the same error......WHAT GIVES?

 

This is probably my fault I hope you guys have a fix!

Link to comment
Share on other sites

//This is the whole create_account1.php file//

 

 

<?php

/*

$Id: create+account3.php,v 2.00 2004/01/05 23:28:24 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

Copyright © 2003 osCommerce

Released under the GNU General Public License

*/

$show_account_box = 1;

//0 no create account box

//1 javascript create account box

//2 normal create account box

$create_password =0;// set to 1 to create an account with random password

$show_login=1;

//0 no create login box

//1 javascript login account box

//2 normal create login box

////////////////////////////////////////////////

////////////////////////////////////////////////

require('includes/application_top.php');

require(DIR_WS_LANGUAGES . $language . '/' . 'create_account.php');

require(DIR_WS_LANGUAGES . $language . '/' . 'fast_account.php');

require(DIR_WS_LANGUAGES . $language . '/' . 'login.php');

// if we have been here before and are coming back get rid of the credit covers variable

if(tep_session_is_registered('credit_covers')) tep_session_unregister('credit_covers'); //rmh M-S_ccgv

//line 21-23 sends the customer ti index.php if he is logedin

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'));

}

// redirect the customer to a friendly cookie-must-be-enabled page if cookies are disabled (or the session has not started)

if ($session_started == false) {

tep_redirect(tep_href_link(FILENAME_COOKIE_USAGE));

}

// +Country-State Selector

$refresh = false;

if (isset($HTTP_POST_VARS['action']) && (($HTTP_POST_VARS['action'] == 'process') || ($HTTP_POST_VARS['action'] == 'refresh'))) {

if ($HTTP_POST_VARS['action'] == 'process') $process = true;

if ($HTTP_POST_VARS['action'] == 'refresh') $refresh = true;

$fromlogin=tep_db_prepare_input($HTTP_POST_VARS['fromlogin']);

// -Country-State Selector

 

 

 

 

 

if (ACCOUNT_GENDER == 'true') {

if (isset($HTTP_POST_VARS['gender'])) {

$gender = tep_db_prepare_input($HTTP_POST_VARS['gender']);

} else {

$gender = false;

}

}

//START REGISTRATION CODE

//$createaccount='N';

//next two lines gives you a temporary fixed password you can change to what you like

//start type one create assount

if ($create_password == 1) {

$createaccount = tep_db_prepare_input($HTTP_POST_VARS['createmyaccount']);

if ($createaccount!='Y')$createaccount='N';

$password = tep_create_random_value(15);

$confirmation = $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']);

}

}

if ($fromlogin == 1) {

$createaccount = 'Y';

$password = tep_db_prepare_input($HTTP_POST_VARS['password']);

$confirmation = tep_db_prepare_input($HTTP_POST_VARS['confirmation']);

}

$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']);

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;

}

//rmh M-S_referral begin

$source = tep_db_prepare_input($HTTP_POST_VARS['source']);

if (isset($HTTP_POST_VARS['source_other'])) $source_other = tep_db_prepare_input($HTTP_POST_VARS['source_other']);

//rmh M-S_referral end

if (tep_not_null($HTTP_POST_VARS['ShipAddress'])) {

$process = true;

$shipping_firstname = tep_db_prepare_input($HTTP_POST_VARS['ShipFirstName']);

$shipping_lastname = tep_db_prepare_input($HTTP_POST_VARS['ShipLastName']);

$shipping_street_address = tep_db_prepare_input($HTTP_POST_VARS['ShipAddress']);

if (ACCOUNT_SUBURB == 'true') $shipping_suburb = tep_db_prepare_input($HTTP_POST_VARS['shipsuburb']);

$shipping_postcode = tep_db_prepare_input($HTTP_POST_VARS['shippostcode']);

$shipping_city = tep_db_prepare_input($HTTP_POST_VARS['ShipCity']);

$shipping_company = tep_db_prepare_input($HTTP_POST_VARS['shipcompany']);

$shipping_country = tep_db_prepare_input($HTTP_POST_VARS['shipcountry']);

if (ACCOUNT_STATE == 'true') {

if (isset($HTTP_POST_VARS['zone_id'])) {

$shipping_zone_id = tep_db_prepare_input($HTTP_POST_VARS['shipping_zone_id']);

} else {

$shipping_zone_id = false;

}

$shipping_state = tep_db_prepare_input($HTTP_POST_VARS['shippingstate']);

}

}

 

 

$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);

}

//rmh M-S_addr-enhancer begin

if (ACCOUNT_DOB == 'true' && REQUIRE_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 {

// here i am adding another line just incase they change to an account immediatly i do not know if it is necessary or not

if (tep_session_is_registered('registered_now')) tep_session_unregister('registered_now');

if (tep_session_is_registered('createaccount')) tep_session_unregister('createaccount');

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 ($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 (strlen($street_address) < ENTRY_STREET_ADDRESS_MIN_LENGTH) {

$error = true;

$messageStack->add('create_account', ENTRY_STREET_ADDRESS_ERROR);

}

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);

}

//rmh M-S_referral begin

/* if ((tep_not_null(tep_get_sources())) && (REFERRAL_REQUIRED == 'true') && (is_numeric($source) == false)) {

$error = true;

$messageStack->add('create_account', ENTRY_SOURCE_ERROR);

}

if ((REFERRAL_REQUIRED == 'true') && (DISPLAY_REFERRAL_OTHER == 'true') &&($source == '9999') && (!tep_not_null($source_other)) ) {

$error = true;

$messageStack->add('create_account', ENTRY_SOURCE_OTHER_ERROR);

}*/

//rmh M-S_referral end

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 (tep_not_null($HTTP_POST_VARS['ShipAddress'])) {

if (strlen($shipping_firstname) < ENTRY_FIRST_NAME_MIN_LENGTH) {

$error = true;

$messageStack->add('create_account', ENTRY_SHIPPING_FIRST_NAME_ERROR);

}

if (strlen($shipping_lastname) < ENTRY_LAST_NAME_MIN_LENGTH) {

$error = true;

$messageStack->add('create_account', ENTRY_SHIPPING_LAST_NAME_ERROR);

}

if (strlen($shipping_street_address) < ENTRY_STREET_ADDRESS_MIN_LENGTH) {

$error = true;

$messageStack->add('create_account', ENTRY_SHIPPING_STREET_ADDRESS_ERROR);

}

if (strlen($shipping_postcode) < ENTRY_POSTCODE_MIN_LENGTH) {

$error = true;

$messageStack->add('create_account', ENTRY_SHIPPING_POST_CODE_ERROR);

}

if (strlen($shipping_city) < ENTRY_CITY_MIN_LENGTH) {

$error = true;

$messageStack->add('create_account', ENTRY_SHIPPING_CITY_ERROR);

}

if (ACCOUNT_STATE == 'true') {

 

// +Country-State Selector

if ($zone_id == 0) {

// -Country-State Selector

 

if (strlen($state) < ENTRY_STATE_MIN_LENGTH) {

$error = true;

 

$messageStack->add('create_account', ENTRY_STATE_ERROR);

}

}

}

 

if ( (is_numeric($shipping_country) == false) || ($shipping_country < 1) ) {

$error = true;

$messageStack->add('create_account', ENTRY_SHIPPING_COUNTRY_ERROR);

}

}

if ($error == false) {

if ($createaccount=='N') {

$password = tep_create_random_value(15);

$confirmation = $password;

}

if ($createaccount == 'Y') {$confirmation='completeaccount';}

$sql_data_array = array('customers_firstname' => $firstname,

'customers_lastname' => $lastname,

'customers_email_address' => $email_address,

'customers_telephone' => $telephone,

'customers_fax' => $fax,

'createaccount' => $createaccount,

'customers_newsletter' => $newsletter,

'confirmation_key' => $confirmation,

'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 . "'");

//rmh M-S_referral begin

//rmh M-S_multi-stores edited next line

// tep_db_query("insert into " . TABLE_CUSTOMERS_INFO . " (customers_info_id, customers_info_date_of_last_logon, customers_info_number_of_logons, customers_info_date_account_created, customers_info_date_account_last_modified, customers_info_source_id) values ('" . (int)$customer_id . "', now(), '1', now(), now(), '". (int)$source . "')");

/* tep_db_query("insert into " . TABLE_CUSTOMERS_INFO . " (customers_info_id, customers_info_date_of_last_logon, customers_info_number_of_logons, customers_info_date_account_created, customers_info_date_account_last_modified) values ('" . (int)$customer_id . "', now(), '1', now(), now() )");

if ($source == '9999') {

tep_db_query("insert into " . TABLE_SOURCES_OTHER . " (customers_id, sources_other_name) values ('" . (int)$customer_id . "', '". tep_db_input($source_other) . "')");

}*/

//rmh M-S_referral end

// rmh M-S_referral comment out the next line

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())");

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');

$registered_now=1;

tep_session_register('registered_now');

if ($createaccount == 'N') tep_session_register('createaccount');

$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'];

// restore cart contents

$cart->restore_contents();

//END REGISTRATION CODE

//START DIFFERENT SHIPPING CODE

if (tep_not_null($HTTP_POST_VARS['ShipAddress'])) {

$sql_data_array = array('customers_id' => $customer_id,

'entry_title_id' => $title,

'entry_firstname' => $shipping_firstname,

'entry_lastname' => $shipping_lastname,

'customers_ip_address' => $HTTP_SERVER_VARS["REMOTE_ADDR"],

'entry_street_address' => $shipping_street_address,

'entry_postcode' => $shipping_postcode,

'entry_city' => $shipping_city,

'entry_country_id' => $shipping_country);

if (ACCOUNT_GENDER == 'true') $sql_data_array['entry_gender'] = $gender;

if (ACCOUNT_COMPANY == 'true') $sql_data_array['entry_company'] = $shipping_company;

if (ACCOUNT_SUBURB == 'true') $sql_data_array['entry_suburb'] = $shipping_suburb;

if (ACCOUNT_STATE == 'true') {

if ($zone_id > 0) {

$sql_data_array['entry_zone_id'] = $shipping_zone_id;

$sql_data_array['entry_state'] = '';

} else {

$sql_data_array['entry_zone_id'] = '0';

$sql_data_array['entry_state'] = $shipping_state;

}

}

tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array);

$address_id = tep_db_insert_id();

$sendto =$address_id;

tep_session_unregister('sendto');

tep_session_register('sendto');

$sendto = tep_db_insert_id();

}

//END DIFFERENT SHIPPING 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')

{if($create_password ==1){$email_text .=PASSWORD_CREATED.': '.$password;}

tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);}

/////////END EMAIL

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'));

}

}

}

if ($error == true) {

// $messageStack->add('create_account', TEXT_CREATE_ACCOUNT_ERROR);

}

 

// +Country-State Selector

 

if ($HTTP_POST_VARS['action'] == 'refresh') {$state = '';}

if (!isset($country)) $country = DEFAULT_COUNTRY;

// -Country-State Selector

$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">

<script src="global.js" type=text/javascript></SCRIPT>

<?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 border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- left_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

<!-- left_navigation_eof //-->

</table></td>

<!-- body_text //-->

<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td><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_box2.php');}

if ($show_login ==2) { require('includes/fec/login_box.php');}

if ($show_login ==0) {echo PRIMARY_ADDRESS_DESCRIPTION; } ?></td>

</tr>

<?php

}

?>

<td width="100%" valign="top"><?php echo tep_draw_form('create_account', tep_href_link('create_account1.php', '', 'SSL'), 'post', 'onSubmit="return check_form(create_account);"') . tep_draw_hidden_field('action', 'process'). tep_draw_hidden_field('fromlogin', $fromlogin); ?>

<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_TITLE; ?></td>

<td class="main"><?php echo tep_get_title_list('title', STORE_TITLE) . ' ' . (tep_not_null(ENTRY_TITLE_TEXT) ? '<span class="inputRequirement">' . ENTRY_TITLE_TEXT . '</span>': ''); ?></td>

</tr>

<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

/*---------->BOF Pulldown date of birth 1.0*/

 

if (ACCOUNT_DOB == 'true') {

?>

<tr>

<td class="main"><?php echo ENTRY_DATE_OF_BIRTH; ?></td>

<td class="main"><?php

$days = array(array('id' => '01', 'text' => '1'),array('id' => '02', 'text' => '2'),

array('id' => '03', 'text' => '3'), array('id' => '04', 'text' => '4'), array('id' => '05', 'text' => '5'), array('id' => '06', 'text' => '6'), array('id' => '07', 'text' => '7'), array('id' => '08', 'text' => '8'), array('id' => '09', 'text' => '9'), array('id' => '10' , 'text' => '10'), array('id' => '11', 'text' => '11'), array('id' => '12', 'text' => '12'), array('id' => '13', 'text' => '13'), array('id' => '14', 'text' => '14'), array('id' => '15', 'text' => '15'), array('id' => '16', 'text' => '16'), array('id' => '17', 'text' => '17'), array('id' => '18', 'text' => '18'), array('id' => '19', 'text' => '19'), array('id' => '20', 'text' => '20'), array('id' => '21', 'text' => '21'), array('id' => '22', 'text' => '22'), array('id' => '23', 'text' => '23'), array('id' => '24', 'text' => '24'), array('id' => '25', 'text' => '25'), array('id' => '26', 'text' => '26'), array('id' => '27', 'text' => '27'), array('id' => '28', 'text' => '28'), array('id' => '29', 'text' => '29'), array('id' => '30', 'text' => '30'), array('id' => '31', 'text' => '31'));

 

 

$months = array(array('id' => '01', 'text' => MONTH_JANUARY), array('id' => '02', 'text' => MONTH_FEBRUARY),

array('id' => '03', 'text' => MONTH_MARCH), array('id' => '04', 'text' => MONTH_APRIL), array('id' => '05', 'text' => MONTH_MAY), array('id' => '06', 'text' => MONTH_JUNE), array('id' => '07', 'text' => MONTH_JULY), array('id' => '08', 'text' => MONTH_AUGUST), array('id' => '09', 'text' => MONTH_SEPTEMBER), array('id' => '10', 'text' => MONTH_OCTOBER), array('id' => '11', 'text' => MONTH_NOVEMBER), array('id' => '12', 'text' => MONTH_DECEMBER));

 

//This Will Make the Years Descend: In Use Currently to Deactivate put // in Front of for

for ($i=date("Y"); $i>=1920; $i--){$years[] = array('id' => $i, 'text' => $i);}

 

//This will Make the Years Ascend: To Use Remove // Before the for!

// for($i=1920; $i<date('Y')-10; $i++){$years[] = array('id' => $i, 'text' => $i);}

/*This will Make the Years Ascend*/

 

echo tep_draw_pull_down_menu('dob_month', $months);

echo tep_draw_pull_down_menu('dob_day', $days);

echo tep_draw_pull_down_menu('dob_year', $years);

echo ' ' . (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') . ' ' . (tep_not_null(ENTRY_EMAIL_ADDRESS_TEXT) ? '<span class="inputRequirement">' . ENTRY_EMAIL_ADDRESS_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_ADDRESS; ?></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_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>

<?php

if (ACCOUNT_SUBURB == 'true') {

?>

<tr>

<td class="main"><?php echo ENTRY_SUBURB; ?></td>

<td class="main"><?php echo tep_draw_input_field('suburb') . ' ' . (tep_not_null(ENTRY_SUBURB_TEXT) ? '<span class="inputRequirement">' . ENTRY_SUBURB_TEXT . '</span>': ''); ?></td>

</tr>

<?php

}

?>

<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>

<?php

if (ACCOUNT_STATE == 'true') {

?>

<tr>

<td class="main"><?php echo ENTRY_STATE; ?></td>

<td class="main">

<?php

 

// +Country-State Selector

$zones_array = array();

$zones_query = tep_db_query("select zone_id, 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_id'], 'text' => $zones_values['zone_name']);

}

if (count($zones_array) > 0) {

echo tep_draw_pull_down_menu('zone_id', $zones_array);

} else {

echo tep_draw_input_field('state');

}

// -Country-State Selector

if (tep_not_null(ENTRY_STATE_TEXT)) echo ' <span class="inputRequirement">' . ENTRY_STATE_TEXT;

?>

</td>

</tr>

<?php

}

?><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>

 

<?php // +Country-State Selector ?>

<td class="main"><?php echo tep_get_country_list('country',$country,

'onChange="return refresh_form(create_account);"') . ' ' .

(tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT .

'</span>': ''); ?></td>

<?php // -Country-State Selector ?>

 

<!-- DDB - 040622 - initialise with STORE_COUNTRY //-->

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td class="main"><b><?php echo CATEGORY_CONTACT; ?></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_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_FAX_NUMBER; ?></td>

<td class="main"><?php echo tep_draw_input_field('fax') . ' ' . (tep_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_FAX_NUMBER_TEXT . '</span>': ''); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<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 ENTRY_NEWSLETTER; ?></td>

<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>

</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('createmyaccount', '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_box2.php');}

if ($show_account_box == 2){ 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 border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- right_navigation //-->

<?php include(DIR_WS_INCLUDES . 'column_right.php'); ?>

<!-- right_navigation_eof //-->

</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'); ?>

Link to comment
Share on other sites

  • 2 months later...
  • 2 weeks later...

I'm getting very similar problem - no matter what I put in billing form under "required information" I will get this popup asking for correction even though it's correct....this problem doesn't exists when reverting to backup from before installing Fec 3.2.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...