Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

fast easy checkout


nana

Recommended Posts

javier fec does not change anything in checkout_confirmation.php that would have this effect as far as i know and can thinkof at the moment

was this working before instalation of fec ?

i am not familiar with this contribution but the other ipn have their own checkout_process ant the problem might be there

Link to comment
Share on other sites

  • Replies 1.7k
  • Created
  • Last Reply

Top Posters In This Topic

here is my code from checkout_confirmation.php did I unregister it properly?

 

// first two lines are for ccgv
//tep_session_unregister('gv_redeem_code');
//tep_session_unregister('credit_covers');
tep_session_unregister('cc_number');
tep_session_unregister('cc_expires_month');
tep_session_unregister('cc_expires_year');
tep_session_unregister('cc_owner');
tep_session_unregister('cc_cvv2');
tep_session_unregister('authorizenet_cc_number');
tep_session_unregister('authorizenet_cc_expires_month');
tep_session_unregister('authorizenet_cc_expires_year');
tep_session_unregister('authorizenet_cc_owner');
//fast easy checkout end

 

 

 

jeff as far as the cvv2 i think you probably have to unregister the value in the checkout_confirmation.php like it is done with cc_number and the rest of values at the top of the page

 

as for country_id i think it might be that the variable is called a diffrent thing

i will take a look tom

you can try to see if it works correctly with the other create account file and let me know

i have some ideas but i have to test it

Link to comment
Share on other sites

frank,

 

when I tried create_account.php i get these errors:

 

Your Details

 

Warning: main(login_box.php): failed to open stream: No such file or directory in /home/curtisd/public_html/create_account.php on line 377

 

Warning: main(login_box.php): failed to open stream: No such file or directory in /home/curtisd/public_html/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/curtisd/public_html/create_account.php on line 377

 

 

 

 

 

do you have this problem with the more basic create_account.php and usps

are you using a contribution for usps and if so which one

how are you doing with the rest of your problems

Link to comment
Share on other sites

I am using a contrib for USPS but not UPS

 

the USPS one I am using is "USPS Methods v2.7d with USPS shipping with US/International insurance" http://www.oscommerce.com/community/contri...all/search,usps

 

 

 

jeff you did not answer my question

do you have this problem with the more basic create_account.php and usps

are you using a contribution for usps and if so which one

how are you doing with the rest of your problems

Link to comment
Share on other sites

is there a way to make it so that the account info box doesn't display and it only shows the login/password fields?

i think it'll confuse customers if they see account links

 

 

if you are login in a nonaccount and try to go to any for account pages it kicks you to index so they would not be available
Link to comment
Share on other sites

is there a way to make it so that the account info box doesn't display and it only shows the login/password fields?

i think it'll confuse customers if they see account links

you can almost do anything you want but

i do not understand what you are talking about

let me know what file you are talking about

 

take a look at this for your errors

http://www.oscommerce.com/forums/index.php?sho...c=167064&st=694

 

also regarding your cvv was there changes necessary to checkout_payment.php and if so you must make those changes to checkout_shipping.php

and make sure the field is called 'cc_cvv2' and you are unregistering the correct thing for example if it is called cvv then that might be the problem

Link to comment
Share on other sites

the only files edited for my "cc_cvv2" is:

 

catalog/includes/modules/payment/cc.php

catalog / includes / languages / english / modules / payment / cc.php

 

the contrib link is: http://www.oscommerce.com/community/contri...all/search,cvv2

 

 

also regarding your cvv was there changes necessary to checkout_payment.php and if so you must make those changes to checkout_shipping.php

and make sure the field is called 'cc_cvv2' and you are unregistering the correct thing for example if it is called cvv then that might be the problem

Link to comment
Share on other sites

Hi Frank, I'm trying to get the How-did-you-hear-about-us contribution to display correctly, but I'm getting a parse error:

 

Parse error: parse error, unexpected $ in /data/www/data/k2152/html/create_account_referrer.php on line 680

 

And can't find where it's at in the page you sent me, but I know it's in the sections that were originally commented out by you because I only get the parse error when I uncomment them. I've put these lines in red comment tags (that don't work inside the code tags = ):

 

<?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
*/
require('includes/application_top.php');
///////////////////////////////////////
//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(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 assount
//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') {
$password = tep_db_prepare_input($HTTP_POST_VARS['password']);
$confirmation = tep_db_prepare_input($HTTP_POST_VARS['confirmation']);
}else{
$createaccount='N';
$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;
}
[color=#FF0000]//fec 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']);
//fec referral end[/color]
$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);
}
[color=#FF0000]//fec 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);
}
//fec referral end [/color]
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 . "'");
[color=#FF0000]//fec referral begin
//fec multi-stores edited next line
tep_db_query("insert into " . TABLE_CUSTOMERS_INFO . " (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created, customers_info_source_id) values ('" . (int)$customer_id . "', '0', now(), '". (int)$source . "')");

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

// fec IF YOU WANT TO INCLUDE THE WHERE DID YOU HEAR FROM US YOU HAVE COMMENT OUT THE NEXT LINE ALSO
//fec referral end [/color]
//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(FILENAME_CREATE_ACCOUNT, tep_href_link('create_account.php', '', '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

//fec referral begin ?><?php
if (tep_not_null(tep_get_sources())) {
?>
						<tr>
							<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
						</tr>
						<tr>
							<td class="main"><b><?php// echo CATEGORY_SOURCE; ?></b></td>
						</tr>
						<tr>
							<td><?php
if (DISPLAY_REFERRAL_OTHER == 'true') {
?>
								<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_SOURCE; ?></td>
													<td class="main"><?php echo tep_get_source_list('source', (DISPLAY_REFERRAL_OTHER == 'true' ? true : false)) . ' ' . (tep_not_null(ENTRY_SOURCE_TEXT) ? '<span class="inputRequirement">' . ENTRY_SOURCE_TEXT . '</span>': ''); ?></td>
												</tr>
												<tr>
													<td class="main"><?php echo ENTRY_SOURCE_OTHER; ?></td>
													<td class="main"><?php echo tep_draw_input_field('source_other') . ' ' . (tep_not_null(ENTRY_SOURCE_OTHER_TEXT) ? '<span class="inputRequirement">' . ENTRY_SOURCE_OTHER_TEXT . '</span>': ''); ?></td>
												</tr>
											</table>
											<?php
}
?></td>
									</tr>
								</table>
							</td>
						</tr>
						<?php
}
?><?php


//rmh M-S_referral end ?><?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'm currently running the commented version on the site, and it works except for actually inserting the selected value into the db (understandably). I just need help finding the parse error that is caused when the code is uncommented. -Thanks!

Quidquid latine dictum sit, profundum viditur.

Link to comment
Share on other sites

you can almost do anything you want but

i do not understand what you are talking about

let me know what file you are talking about

 

I have the contrib "LoginboxV5.4_in_header"

http://www.oscommerce.com/community/contri...ch,login+header

 

as soon as someone clicks on the "continue" button on createaccount3.php the next page is checkout_shipping.php and where my account login box was in my header, it now shows

 

Welcome back JT!

My account info

General information Edit account info.

Account history My address book

Wishlist Order Tracking

Gift Certificate Faq

Log Out of Account

 

showing the customer that he/she is logged in but when i click on any of the links i get sent back to /login.php

and now my login box has disappeared

 

so, what i want to do is, since the customer has the option of creating an account, when the "Yes please, create an account for me." is not checked i do not want the login box in header to change at all

Link to comment
Share on other sites

Nevermind-found the missing closing bracket on line 304. If you get any ideas on why the header always wants to show the my account and log off links I'd love to hear. Seems like it's not recognizing the createaccount=N or some such thing...

Quidquid latine dictum sit, profundum viditur.

Link to comment
Share on other sites

Frank,

 

I added the code for the referrel contrib like Cleve (Akmac) did but I am using createaccount3.php not createaccount.php

 

I had this contrib previously installed so I only modified my createaccount3 page and now when I click on continue AFTER selecting a referrel I get this error:

 

 

1062 - Duplicate entry '690' for key 1

 

insert into customers_info (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created, customers_info_source_id) values ('690', '0', now(), '33')

 

[TEP STOP]

 

I did not modify my db with the referrel contrib

Link to comment
Share on other sites

javier fec does not change anything in checkout_confirmation.php that would have this effect as far as i know and can thinkof at the moment

was this working before instalation of fec ?

i am not familiar with this contribution but the other ipn have their own checkout_process ant the problem might be there

 

This contribution doesn't change checkout_process.php. I installed fec first, so I'm not sure what effect this would have on a non-fec site. I do know that it goes back to checkout_process when it returns from the merchant. I'm really not even sure where to start looking for a problem. I am enjoying the heck out of learning php and making all these mods though, so if you can point me in a direction I'll start checking into it.

The IPN thread seems pretty dead, so I'm not getting answers over there.

 

Off-topic, but I made my first major "no handrails" mod of osCommerce yesterday. I wanted an "upcoming products" page similar to new products - with pictures, etc. I was able to take the current new products page, mod it and create a set of files to do what I wanted.

Here's my (well, my code, my wife's product) website: http://www.homemadehedonist.com

Any feedback is of course appreciated, alhough I know it still needs quite a bit of work.

Please note I currently have paypal IPN disabled, as it's not working properly.

 

Thanks again for the great support on this thread!

Link to comment
Share on other sites

when I try to "update" comments on admin/orders.php for a customer, I get this error message:

 

1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'from orders where orders_id = '1090'' at line 1

 

select customers_name, customers_id, from orders where orders_id = '1090'

 

[TEP STOP]

Link to comment
Share on other sites

I still get this error but only when someone is buying something for the first time. When a user with an account logs in, everything works fine on the checkout_shipping.php

 

United States Postal Service United States Postal Service

-2147219080 - Missing value for Country.

 

 

United Parcel Service United Parcel Service

An error occured with the UPS shipping calculations.

Missing ConsigneeCountry

If you prefer to use UPS as your shipping method, please contact the store owner.

 

 

I am using the createaccount3.php page

Link to comment
Share on other sites

As Jeff mentioned, view the source from your web browser and search for the displayed text. Find out what 'class' is used in the html. Then open your stylesheet.css file and find the name of the class and you can change the colors etc. If you need help with stylesheet code, search google for tutorials.

 

This question has nothing to do with Nana's contribution. Everyone needs to research their questions on the forums first before asking Nana. Nana is helpful, but let us not stress him out with questions and for support unrelated to FEC.

Edited by safoo
Link to comment
Share on other sites

ok i have the fast easy checkout all installed and i think working correctly. The client i am doing this site for does not want the client to have to be a member to order online. Which is no big deal as with the fast easy checkout there is a box to click saying the user does not want to create an account. However, here is the problem if someone fills out the info and orders the product then comes back to order another the e-mail field blocks them from doing so as it says the e-mail address already is in the database. So how do I fix this? Also if they do click the box to create an account how do they know what their password is? You can view the site at http://gutterprotector.net/shopping/index.php

 

If I did something wrong or forgot a step can someone let me know. Thank you in advance for your help.

Link to comment
Share on other sites

ok i have the fast easy checkout all installed and i think working correctly. The client i am doing this site for does not want the client to have to be a member to order online. Which is no big deal as with the fast easy checkout there is a box to click saying the user does not want to create an account. However, here is the problem if someone fills out the info and orders the product then comes back to order another the e-mail field blocks them from doing so as it says the e-mail address already is in the database. So how do I fix this? Also if they do click the box to create an account how do they know what their password is? You can view the site at http://gutterprotector.net/shopping/index.php

 

If I did something wrong or forgot a step can someone let me know. Thank you in advance for your help.

If you have done everything right, then a customer that returns and enter the same email addres will be replaced with the new one. The customer data form his fist purchase will be deleted and he will get a new customer ID.

 

Go thru your installation and make sure you did the database change.

 

// Fredrik

Edited by redrum
Link to comment
Share on other sites

Hi, Nana,

 

What class am suppost to edit on that style sheet?

 

Thank you,

Michael

safoo has allready answer your question a couple of post above. Take a look at that and you should be allright.

 

nana does a tremendous work with his fantastic supprt. So lets help nana help us :)

 

// Fredrik

Link to comment
Share on other sites

I'm still completely confused by step 5 (the instructions aren't as clear and explicit as your other steps). When you say "to change the create account procedure

first choice removes the create account option totaly from this stage..." I don't know what you're referring to. And when you say "in checkout_shipping.php change these two lines to reflect your choices..."

the two lines that appear right below in the pink box don't exist in my checkout_shipping.php file, so I have no idea what I'm supposed to change. I want the second choice to combine login and optional create an account. Can you provide explicit, step-by-step instructions on what goes where as you did with all the previous steps? It was such smoothing sailing right until the final step.

 

faris there are two diffrent create account files and you decide which one you want to use

create_account.php and create_account3.php in the beginning of checkout_shipping.php you decide which one the customer is directed to

also in each create_account.php and create_account3.php on top you can make some choices

easies way for you to understand is changing them and looking at what changes

Link to comment
Share on other sites

[For redrum]

 

I got it, I fixed it & I didnt know it, lol, my cache on my pc was way off.

 

Thank you.

 

[For antoniamar]

 

Thats easy

 

This is the yellow one

//  tep_redirect(tep_href_link('create_account3.php', '', 'SSL'));
 tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));

 

This is the pink one

 tep_redirect(tep_href_link('create_account3.php', '', 'SSL'));
// tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));

 

It makes only 1 page the create_account.php or the create_account3.php work.

 

They are only 1 php statement

 

For the yellow one the top one, the create_account.php will work.

 

For the pink one the bottom one, the create_account3.php will work.

 

Trust me, I have done it.

 

Michael

Michael

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