Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

fast easy checkout


nana

Recommended Posts

what happends if you just refresh the page without anything picked?

is the shipping module based on the value or weight?

when does the customer comes from is he just logged in or is he comming from create an account page?

when the form in checkout_shipping.php is processed it is processed into itself and then is redirected to checkout_confirmation.php after it is processed.

Link to comment
Share on other sites

  • Replies 1.7k
  • Created
  • Last Reply

Top Posters In This Topic

if i refresh without anything picked, the shipping costs go to the rate they were supposed to be

 

shipping is based on value

 

customer is logged in already or coming from the create account page - it happens to everybody

 

once checkout_shipping is processed (after the reload) it goes straight to checkout_confirmation

Link to comment
Share on other sites

when trying your total_box patch:

 

i tried directly pasting it's contents towards the bottom and towards the top of checkout_shipping, got this:

Fatal error: Call to a member function on a non-object in /home/**/public_html/checkout_shipping.php on line 452

 

on line 452:

$order_total_modules->process();

 

i tried the <? include("total_box.php") ?> method as well, similar result.

Link to comment
Share on other sites

stew it sounds to me that you are losing your session variables. check to see if you have any new changes ?

 

Frank-

 

I've added this to checkout_confirmation.php:

 

// if retail customer has not selected shipping method redirect them to shipping page
global $sppc_customer_group_id;
if (!tep_session_is_registered('sppc_customer_group_id')) {
$customer_group_id = '0';
} else {
$customer_group_id = $sppc_customer_group_id;
}

if (($customer_group_id == '0') && ($order->info['shipping_cost'] == 0)) {
tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
}

 

and I commented out this section from your contribution:

 

/*
 //fast easy checkout start
foreach ($_SESSION as $key => $val) {
// print $key.' => '.$val.' - ';print_r($val);echo "<br>";
 $HTTP_POST_VARS[$key] = $val;

}
// first two lines are f0r 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('authorizenet_cc_number');
tep_session_unregister('authorizenet_cc_expires_month');
tep_session_unregister('authorizenet_cc_expires_year');
tep_session_unregister('authorizenet_cc_owner');
 tep_session_unregister('paypal_cc_number');
tep_session_unregister('paypal_cc_firstname');
tep_session_unregister('paypal_cc_lastname');
tep_session_unregister('paypal_cc_cvv2');
//tep_session_unregister('paypal_cc_expires_month');

//fast easy checkout end
 */

Do, or do not. There is no try.

 

Order Editor 5.0.6 "Ultra Violet" is now available!

For support or to post comments, suggestions, etc, please visit the Order Editor support thread.

Link to comment
Share on other sites

stew what you have commented out is the cause of your problem

 

Sigh.... this mickey mouse credit card module doesn't work properly either way.

 

Thank you for your help, Frank.

Do, or do not. There is no try.

 

Order Editor 5.0.6 "Ultra Violet" is now available!

For support or to post comments, suggestions, etc, please visit the Order Editor support thread.

Link to comment
Share on other sites

Hi again

 

It would appear i am still having a problem with the checkout_shipping.php. I only use the SECPay module as my payment method so there are no options there which is correct. However, as a new customer reaches checkout shipping the text in the payment box is there saying "SECpay is the only payment method to use on this order" but the module has not loaded. If you refresh the page the rest of the SECPay module appears and you can then checkout to SECPay after the checkout_confirmation.php?

This is a live site and i really need this working ASAP, any ideas on why i have to refresh the page?

You can check it out for yourself at www.jbleisure.co.uk using [email protected] as the e:mail and testing as the password. Note that SECPay is in production mode so don't pay for anything.

 

Thanks in advance. i hope you can help me out.

Cheers

Julian

A little knowledge is dangerous, I SHOULD KNOW.

If Life Begins At 40, What ends????

Link to comment
Share on other sites

i have not tested your site yet but this might have something to do with it

both in your create_account.php and login.php somewhere after recreate session part add this code.

i belive this would solve the problem.

$sendto = $customer_default_address_id;
$billto = $customer_default_address_id;
tep_session_register('sendto');
tep_session_register('billto');

i had a few people have an issue with shipping modules similar to what you are experiencing with your payment module and this resolved

Link to comment
Share on other sites

when trying your total_box patch:

 

i tried directly pasting it's contents towards the bottom and towards the top of checkout_shipping, got this:

Fatal error: Call to a member function on a non-object in /home/**/public_html/checkout_shipping.php on line 452

 

on line 452:

$order_total_modules->process();

 

i tried the <? include("total_box.php") ?> method as well, similar result.

 

 

any pointers for this nana? :)

Link to comment
Share on other sites

i have not tested your site yet but this might have something to do with it

both in your create_account.php and login.php somewhere after recreate session part add this code.

i belive this would solve the problem.

$sendto = $customer_default_address_id;
$billto = $customer_default_address_id;
tep_session_register('sendto');
tep_session_register('billto');

i had a few people have an issue with shipping modules similar to what you are experiencing with your payment module and this resolved

 

Thanks for the prompt reply Frank, but i've only just come back on-line to see your reply and try it.

Anyway, i've added the mods you've suggested and it's still the same, whether a new customer or a returning customer, you still have to refresh the page for the payment module to show?

 

Julian

A little knowledge is dangerous, I SHOULD KNOW.

If Life Begins At 40, What ends????

Link to comment
Share on other sites

julianpuje although i saw the problem on your site but it seems that i can not reproduce this in the demo site and the payment module seems to work as the only available one.i have left the demo site with one payment option so you can test

i also noticed another thing the mouseover on the payment module does not work

i would suggest you use a diff program and tke a look at the checkout_shipping.php that i posted before and what you are using and try to find the diffrence in the files.

also the problem might be in the payment module if you have changed that.

post both files if you can not find the diffrence.

i hope you had commented your changes this way it would be easier to find

Link to comment
Share on other sites

julianpuje although i saw the problem on your site but it seems that i can not reproduce this in the demo site and the payment module seems to work as the only available one.i have left the demo site with one payment option so you can test

i also noticed another thing the mouseover on the payment module does not work

i would suggest you use a diff program and tke a look at the checkout_shipping.php that i posted before and what you are using and try to find the diffrence in the files.

also the problem might be in the payment module if you have changed that.

post both files if you can not find the diffrence.

i hope you had commented your changes this way it would be easier to find

 

Thanks again nana for taking a look.

As far as i'm aware everything is back to how it was when you posted the checkout_shipping.php for me to try. The only difference being that i've uncommented the credit bit and tweaked the layout to suit the site. I've posted my Checckout_shipping.php below and my SECPay module.

Cheers

Julian

 

<?php
/*
$Id: checkout_shipping.php,v 1.16 2003/06/09 23:03:53 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');
require('includes/classes/http_client.php');

require(DIR_WS_CLASSES . 'order.php');
$order = new order;
require(DIR_WS_CLASSES . 'payment.php');
$payment_modules = new payment;


$total_weight = $cart->show_weight();
$total_count = $cart->count_contents();


require(DIR_WS_CLASSES . 'shipping.php');
$shipping_modules = new shipping;

//the next 4 lines are for ccgv
require(DIR_WS_CLASSES . 'order_total.php');

$order_total_modules = new order_total;
$order_total_modules->collect_posts();
$order_total_modules->pre_confirmation_check(); 
// if the customer is not logged on, redirect them to the login page
if (!tep_session_is_registered('customer_id')) {
$navigation->set_snapshot();
// tep_redirect(tep_href_link('create_account3.php', '', 'SSL'));
tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));
}

// if there is nothing in the customers cart, redirect them to the shopping cart page
if ($cart->count_contents() < 1) {
tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
}
// if no shipping destination address was selected, use the customers own address as default
if (!tep_session_is_registered('sendto')) {
tep_session_register('sendto');
$sendto = $customer_default_address_id;
} else {
// verify the selected shipping address
$check_address_query = tep_db_query("select count(*) as total from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "' and address_book_id = '" . (int)$sendto . "'");
$check_address = tep_db_fetch_array($check_address_query);

if ($check_address['total'] != '1') {
$sendto = $customer_default_address_id;
if (tep_session_is_registered('shipping')) tep_session_unregister('shipping');
}
}
// if no billing destination address was selected, use the customers own address as default
if (!tep_session_is_registered('billto')) {
tep_session_register('billto');
$billto = $customer_default_address_id;
} else {
// verify the selected billing address
$check_address_query = tep_db_query("select count(*) as total from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "' and address_book_id = '" . (int)$billto . "'");
$check_address = tep_db_fetch_array($check_address_query);

if ($check_address['total'] != '1') {
$billto = $customer_default_address_id;
if (tep_session_is_registered('payment')) tep_session_unregister('payment');
}
}


// register a random ID in the session to check throughout the checkout procedure
// against alterations in the shopping cart contents
if (!tep_session_is_registered('cartID')) tep_session_register('cartID');
$cartID = $cart->cartID;

// if the order contains only virtual products, forward the customer to the billing page as
// a shipping address is not needed
if ($order->content_type == 'virtual') 
{
if (!tep_session_is_registered('shipping')) tep_session_register('shipping');
$shipping = false;
$sendto = false;
tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
}
tep_session_unregister('billing');
tep_session_unregister('payment');
if (isset($HTTP_POST_VARS['payment'])) $payment = $HTTP_POST_VARS['payment'];
if (!tep_session_is_registered('payment')) tep_session_register('payment');




if($n==1){
if ( ( is_array($payment_modules->modules) && (sizeof($payment_modules->modules) > 1) && !is_object($$payment) ) || (is_object($$payment) && ($$payment->enabled == false)) ) {
tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, 'error_message=' . urlencode(ERROR_NO_PAYMENT_MODULE_SELECTED), 'SSL'));

tep_session_unregister('payment');
$payment_modules->update_status();
}
if (is_array($payment_modules->modules)) {
$payment_modules->pre_confirmation_check();
}
}
while (list($key, $value) = each($_POST))
{
tep_session_register($key);
}
if ( defined('MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING') && (MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING == 'true') ) {
$pass = false;

switch (MODULE_ORDER_TOTAL_SHIPPING_DESTINATION) {
case 'national':
if ($order->delivery['country_id'] == STORE_COUNTRY) {
$pass = true;
}
break;
case 'international':
if ($order->delivery['country_id'] != STORE_COUNTRY) {
$pass = true;
}
break;
case 'both':
$pass = true;
break;
}

$free_shipping = false;
if ( ($pass == true) && ($order->info['total'] >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {
$free_shipping = true;

include(DIR_WS_LANGUAGES . $language . '/modules/order_total/ot_shipping.php');
}
} else {
$free_shipping = false;
}

// process the selected shipping method
if ( isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process') ) {
if (!tep_session_is_registered('comments')) tep_session_register('comments');
if (tep_not_null($HTTP_POST_VARS['comments'])) {
$comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);
}

if (!tep_session_is_registered('shipping')) tep_session_register('shipping');

if ( (tep_count_shipping_modules() > 0) || ($free_shipping == true) ) {
if ( (isset($HTTP_POST_VARS['shipping'])) && (strpos($HTTP_POST_VARS['shipping'], '_')) ) {
$shipping = $HTTP_POST_VARS['shipping'];

list($module, $method) = explode('_', $shipping);
if ( is_object($$module) || ($shipping == 'free_free') ) {
if ($shipping == 'free_free') {
$quote[0]['methods'][0]['title'] = FREE_SHIPPING_TITLE;
$quote[0]['methods'][0]['cost'] = '0';
} else {
$quote = $shipping_modules->quote($method, $module);
}
if (isset($quote['error'])) {
tep_session_unregister('shipping');
} else {
if ( (isset($quote[0]['methods'][0]['title'])) && (isset($quote[0]['methods'][0]['cost'])) ) {
$shipping = array('id' => $shipping,
'title' => (($free_shipping == true) ? $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' . $quote[0]['methods'][0]['title'] . ')'),
'cost' => $quote[0]['methods'][0]['cost']);

tep_redirect(tep_href_link(FILENAME_CHECKOUT_CONFIRMATION,'', 'SSL'));
}
}
} else {
tep_session_unregister('shipping');
}
}
} else {
$shipping = false;

tep_redirect(tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'));
}
}

// get all available shipping quotes
$quotes = $shipping_modules->quote();

// if no shipping method has been selected, automatically select the cheapest method.
// if the modules status was changed when none were available, to save on implementing
// a javascript force-selection method, also automatically select the cheapest shipping
// method if more than one module is now enabled
if ( !tep_session_is_registered('shipping') || ( tep_session_is_registered('shipping') && ($shipping == false) && (tep_count_shipping_modules() > 1) ) ) $shipping = $shipping_modules->cheapest();

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_PAYMENT);
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_SHIPPING);

$breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
$breadcrumb->add(NAVBAR_TITLE_2, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', '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 echo $payment_modules->javascript_validation(); ?>
<script language="javascript"><!--
var selected;

function selectRowEffect2(object, buttonSelect) {
if (!selected) {
if (document.getElementById) {
selected = document.getElementById('defaultSelected');
} else {
selected = document.all['defaultSelected'];
}
}

if (selected) selected.className = 'moduleRow';
object.className = 'moduleRowSelected2';
selected = object;

// one button is not an array
if (document.checkout_payment.shipping[0]) {
document.checkout_payment.shipping[buttonSelect].checked=true;
} else {
document.checkout_payment.shipping.checked=true;
}
}

function rowOverEffect(object) {
if (object.className == 'moduleRow') object.className = 'moduleRowOver';
}

function rowOutEffect(object) {
if (object.className == 'moduleRowOver') object.className = 'moduleRow';
}
//--></script>
<script language="javascript"><!--
var selected;
<?php//rmh M-S_ccgv begin ?>
var submitter = null;
function submitFunction() {
submitter = 1;
}
<?php//rmh M-S_ccgv end ?>
function selectRowEffect(object, buttonSelect) {
if (!selected) {
if (document.getElementById) {
selected = document.getElementById('defaultSelected');
} else {
selected = document.all['defaultSelected'];
}
}

if (selected) selected.className = 'moduleRow';
object.className = 'moduleRowSelected';
selected = object;

// one button is not an array
if (document.checkout_payment.payment[0]) {
document.checkout_payment.payment[buttonSelect].checked=true;
} else {
document.checkout_payment.payment.checked=true;
}
}

function rowOverEffect(object) {
if (object.className == 'moduleRow') object.className = 'moduleRowOver';
}

function rowOutEffect(object) {
if (object.className == 'moduleRowOver') object.className = 'moduleRow';
}
//--></script>
<script language="JavaScript" src="https://secure.comodo.net/trustlogo/javascript/trustlogo.js" type="text/javascript">
</script>
</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 //-->
<!-- body_text //-->
<td width="100%" valign="top"><?php echo tep_draw_form('checkout_payment', tep_href_link(FILENAME_CHECKOUT_SHIPPING, 'n=1', 'SSL'), 'post', 'onsubmit="return check_form();"') . tep_draw_hidden_field('action', 'process'); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading" align="center"><?php echo HEADING_TITLE;
//echo $ZETA; ?></td>
</tr>
</table></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<?php
if (isset($HTTP_GET_VARS['payment_error']) && is_object(${$HTTP_GET_VARS['payment_error']}) && ($error = ${$HTTP_GET_VARS['payment_error']}->get_error())) {
?>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="main"><b><?php echo tep_output_string_protected($error['title']); ?></b></td>
</tr>
</table></td>
</tr>
<tr>
<td>
<table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBoxNotice">
<tr class="infoBoxNoticeContents">
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td class="main" width="100%" valign="top"><?php echo tep_output_string_protected($error['error']); ?></td>
<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
<?php
}
?>
</td>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
</tr>
</table></td>
</tr>
<?php

if (!tep_session_is_registered('registered_now')) {

?>
<tr>
<td><table border="0" width="80%" align="center" cellspacing="1" cellpadding="2" class="infoBoxcontents">
<tr class="infoBox2">
<td>
<table border="0" width="50%" cellspacing="0" cellpadding="2" align="center">
<tr>

<td align="left" valign="top">
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main" align=""><b><?php echo TABLE_HEADING_SHIPPING_ADDRESS; ?></b></td>
</tr>
<tr>
<td class="main" align="left"><?php echo tep_address_label($customer_id, $sendto, true, ' ', '<br>'); ?></td>
</tr><tr>
<td class="main" align="left"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL') . '">' . tep_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS) . '</a>'; ?></td>
</tr>
</table>
</td> </tr>
</table>
</td>
<td>
<table border="0" width="50%" cellspacing="0" cellpadding="2" align="center">
<tr>
<td align="left" valign="top">
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main"><b><?php echo TABLE_HEADING_BILLING_ADDRESS; ?></b></td>
</tr>
<tr>
<td class="main" align="left"><?php echo tep_address_label($customer_id, $billto, true, ' ', '<br>'); ?></td></tr>
<tr>
<td class="main" align="left"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL') . '">' . tep_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS) . '</a>'; ?></td>
</tr>

</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<?php

}

?>
<td><table border="0" width="100%" cellspacing="0" cellpadding="5">
<tr>
<td class="main" align="center"><br><b><?php echo TABLE_HEADING_PAYMENT_METHOD; ?></b></td>
</tr>
</table></td>
</tr>
<tr>
<td><table border="0" width="80%" align="center" cellspacing="1" cellpadding="2" class="infoBoxcontents">
<tr class="infoBox2">
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<?php
$selection = $payment_modules->selection();

if (sizeof($selection) > 1) {
?>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td class="main" width="50%" valign="top"><?php echo TEXT_SELECT_PAYMENT_METHOD; ?></td>
<td class="main" width="50%" valign="top" align="right"><b><?php echo TITLE_PLEASE_SELECT; ?></b><br><?php echo tep_image(DIR_WS_IMAGES . 'arrow_east_south.gif'); ?></td>
<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
<?php
} else {
?>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td class="main" width="100%" colspan="2"><?php echo TEXT_ENTER_PAYMENT_INFORMATION; ?></td>
<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
<?php
}

$radio_buttons = 0;
for ($i=0, $n=sizeof($selection); $i<$n; $i++) {
?>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<?php
if ( ($selection[$i]['id'] == $payment) || ($n == 1) ) {
echo ' <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n";
} else {
echo ' <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n";
}
?>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td class="main" colspan="3"><b><?php echo $selection[$i]['module']; ?></b></td>
<td class="main" align="right">
<?php
if (sizeof($selection) > 1) {
echo tep_draw_radio_field('payment', $selection[$i]['id']);
} else {
echo tep_draw_hidden_field('payment', $selection[$i]['id']);
}
?>
</td>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
<?php
if (isset($selection[$i]['error'])) {
?>
<tr>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td class="main" colspan="4"><?php echo $selection[$i]['error']; ?></td>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
<?php
} elseif (isset($selection[$i]['fields']) && is_array($selection[$i]['fields'])) {
?>
<tr>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td colspan="4"><table border="0" cellspacing="0" cellpadding="2">
<?php
for ($j=0, $n2=sizeof($selection[$i]['fields']); $j<$n2; $j++) {
?>
<tr>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td class="main"><?php echo $selection[$i]['fields'][$j]['title']; ?></td>
<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td class="main"><?php echo $selection[$i]['fields'][$j]['field']; ?></td>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
<?php
}
?>
</table></td>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
<?php
}
?>
</table></td>
<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
<?php
$radio_buttons++;
}
?>
</table></td>
</tr>
</table></td>
</tr>

<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<?php
if (tep_count_shipping_modules() > 0) {
?>
<tr>
<td><table border="0" width="80%" align="center" cellspacing="5" cellpadding="2">
<tr>
<td class="main" align="center"><b><?php echo TABLE_HEADING_SHIPPING_METHOD; ?></b></td>
</tr>
</table></td>
</tr>
<tr>
<td><table border="0" width="80%" align="center" cellspacing="1" cellpadding="2" class="infoBoxcontents">
<tr class="infoBox2">
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<?php
if (sizeof($quotes) > 1 && sizeof($quotes[0]) > 1) {
?>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td class="main" width="50%" valign="top"><?php echo TEXT_CHOOSE_SHIPPING_METHOD; ?></td>
<td class="main" width="50%" valign="top" align="right"><?php echo '<b>' . TITLE_PLEASE_SELECT . '</b><br>' . tep_image(DIR_WS_IMAGES . 'arrow_east_south.gif'); ?></td>
<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
<?php
} elseif ($free_shipping == false) {
?>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td class="main" width="100%" colspan="2"><?php echo TEXT_ENTER_SHIPPING_INFORMATION; ?></td>
<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
<?php
}

if ($free_shipping == true) {
?>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td colspan="2" width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td class="main" colspan="3"><b><?php echo FREE_SHIPPING_TITLE; ?></b> <?php echo $quotes[$i]['icon']; ?></td>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
<tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, 0)">
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td class="main" width="100%"><?php echo sprintf(FREE_SHIPPING_DESCRIPTION, $currencies->format(MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER)) . tep_draw_hidden_field('shipping', 'free_free'); ?></td>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
</table></td>
<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
<?php
} else {
$radio_buttons = 0;
for ($i=0, $n=sizeof($quotes); $i<$n; $i++) {
?>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td class="main" colspan="3"><b><?php echo $quotes[$i]['module']; ?></b> <?php if (isset($quotes[$i]['icon']) && tep_not_null($quotes[$i]['icon'])) { echo $quotes[$i]['icon']; } ?></td>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
<?php
if (isset($quotes[$i]['error'])) {
?>
<tr>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td class="main" colspan="3"><?php echo $quotes[$i]['error']; ?></td>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
<?php
} else {
for ($j=0, $n2=sizeof($quotes[$i]['methods']); $j<$n2; $j++) {
// set the radio button to be checked if it is the method chosen
$checked = (($quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'] == $shipping['id']) ? true : false);

if ( ($checked == true) || ($n == 1 && $n2 == 1) ) {
echo ' <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect2(this, ' . $radio_buttons . ')">' . "\n";
} else {
echo ' <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect2(this, ' . $radio_buttons . ')">' . "\n";
}
?>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td class="main" width="75%"><?php echo $quotes[$i]['methods'][$j]['title']; ?></td>
<?php
if ( ($n > 1) || ($n2 > 1) ) {
?>
<td class="main"><?php echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))); ?></td>
<td class="main" align="right"><?php echo tep_draw_radio_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'], $checked); ?></td>
<?php
} else {
?>
<td class="main" align="right" colspan="2"><?php echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax'])) . tep_draw_hidden_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id']); ?></td>
<?php
}
?>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
<?php
$radio_buttons++;
}
}
?>
</table></td>
<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
<?php
}
}
?>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<?php
}
?>
<tr>
<td><table border="0" width="80%" align="center" cellspacing="1" cellpadding="2" class="infoBoxcontents">
<tr class="infoBox2">
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><?php echo $order_total_modules->credit_selection();//rmh M-S_ccgv
?>
</td></tr></table></table>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr><tr>
<td><table border="0" width="80%" align="center" cellspacing="0" cellpadding="2">
<tr>
<td class="main" align="center"><b><?php echo TABLE_HEADING_COMMENTS; ?></b></td>
</tr>
</table></td>
</tr>
<tr>
<td><table border="0" width="80%" align="center" cellspacing="1" cellpadding="2" class="infoBoxcontents">
<tr class="infoBox2">
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><?php echo tep_draw_textarea_field('comments', 'soft', '60', '5'); ?></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td><table border="0" width="80%" align="center" cellspacing="1" cellpadding="2" class="infoBoxcontents">
<tr class="infoBox2">
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td class="main"><b><?php echo TITLE_CONTINUE_CHECKOUT_PROCEDURE . '</b>?' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></td>
<td class="main" align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="50%" align="right"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>
<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
</tr>
</table></td>
<td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
<td><?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?></td>
<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
</tr>
</table></td>
<td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
<td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
<td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" width="25%" class="checkoutBarFrom"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '" class="checkoutBarFrom">' . CHECKOUT_BAR_DELIVERY . '</a>'; ?></td>
<td align="center" width="25%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_PAYMENT; ?></td>
<td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td>
<td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_FINISHED; ?></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// require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</table></td>
</tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br><!--
TrustLogo Html Builder Code:
Shows the logo at URL http://www.jbleisure.co.uk/headers/cornertrust.gif
Logo type is  ("SC")
Floating on the Bottom Right
//-->
<script type="text/javascript">TrustLogo("http://www.jbleisure.co.uk/headers/cornertrust.gif", "SC", "bottomright");</script>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

 

<?php
/*
 $Id: secpay.php,v 1.31 2003/01/29 19:57:15 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 class secpay {
var $code, $title, $description, $enabled;

// class constructor
function secpay() {
  global $order;

  $this->code = 'secpay';
  $this->title = MODULE_PAYMENT_SECPAY_TEXT_TITLE;
  $this->description = MODULE_PAYMENT_SECPAY_TEXT_DESCRIPTION;
  $this->sort_order = MODULE_PAYMENT_SECPAY_SORT_ORDER;
  $this->enabled = ((MODULE_PAYMENT_SECPAY_STATUS == 'True') ? true : false);

  if ((int)MODULE_PAYMENT_SECPAY_ORDER_STATUS_ID > 0) {
	$this->order_status = MODULE_PAYMENT_SECPAY_ORDER_STATUS_ID;
  }

  if (is_object($order)) $this->update_status();

  $this->form_action_url = 'https://www.secpay.com/java-bin/ValCard';
}

// class methods
function update_status() {
  global $order;

  if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_SECPAY_ZONE > 0) ) {
	$check_flag = false;
	$check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_SECPAY_ZONE . "' and zone_country_id = '" . $order->billing['country']['id'] . "' order by zone_id");
	while ($check = tep_db_fetch_array($check_query)) {
	  if ($check['zone_id'] < 1) {
		$check_flag = true;
		break;
	  } elseif ($check['zone_id'] == $order->billing['zone_id']) {
		$check_flag = true;
		break;
	  }
	}

	if ($check_flag == false) {
	  $this->enabled = false;
	}
  }
}

function javascript_validation() {
  return false;
}

function selection() {
  return array('id' => $this->code,
			   'module' => $this->title);
}

function pre_confirmation_check() {
  return false;
}

function confirmation() {
  return false;
}

function process_button() {
  global $order, $currencies, $currency;

  switch (MODULE_PAYMENT_SECPAY_CURRENCY) {
	case 'Default Currency':
	  $sec_currency = DEFAULT_CURRENCY;
	  break;
	case 'Any Currency':
	default:
	  $sec_currency = $currency;
	  break;
  }

  switch (MODULE_PAYMENT_SECPAY_TEST_STATUS) {
	case 'Always Fail':
	  $test_status = 'false';
	  break;
	case 'Production':
	  $test_status = 'live';
	  break;
	case 'Always Successful':
	default:
	  $test_status = 'true';
	  break;
  }

  $process_button_string = tep_draw_hidden_field('merchant', MODULE_PAYMENT_SECPAY_MERCHANT_ID) .
						   tep_draw_hidden_field('trans_id', STORE_NAME . date('Ymdhis')) .
						   tep_draw_hidden_field('amount', number_format($order->info['total'] * $currencies->get_value($sec_currency), $currencies->currencies[$sec_currency]['decimal_places'], '.', '')) .
						   tep_draw_hidden_field('bill_name', $order->billing['firstname'] . ' ' . $order->billing['lastname']) .
						   tep_draw_hidden_field('bill_addr_1', $order->billing['street_address']) .
						   tep_draw_hidden_field('bill_addr_2', $order->billing['suburb']) .
						   tep_draw_hidden_field('bill_city', $order->billing['city']) .
						   tep_draw_hidden_field('bill_state', $order->billing['state']) .
						   tep_draw_hidden_field('bill_post_code', $order->billing['postcode']) .
						   tep_draw_hidden_field('bill_country', $order->billing['country']['title']) .
						   tep_draw_hidden_field('bill_tel', $order->customer['telephone']) .
						   tep_draw_hidden_field('bill_email', $order->customer['email_address']) .
						   tep_draw_hidden_field('ship_name', $order->delivery['firstname'] . ' ' . $order->delivery['lastname']) .
						   tep_draw_hidden_field('ship_addr_1', $order->delivery['street_address']) .
						   tep_draw_hidden_field('ship_addr_2', $order->delivery['suburb']) .
						   tep_draw_hidden_field('ship_city', $order->delivery['city']) .
						   tep_draw_hidden_field('ship_state', $order->delivery['state']) .
						   tep_draw_hidden_field('ship_post_code', $order->delivery['postcode']) .
						   tep_draw_hidden_field('ship_country', $order->delivery['country']['title']) .
						   tep_draw_hidden_field('currency', $sec_currency) .
						   tep_draw_hidden_field('callback', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', false) . ';' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, 'payment_error=' . $this->code, 'SSL', false)) .
						   tep_draw_hidden_field(tep_session_name(), tep_session_id()) .
						   tep_draw_hidden_field('options', 'test_status=' . $test_status . ',dups=false,cb_post=true,cb_flds=' . tep_session_name());

  return $process_button_string;
}

function before_process() {
  global $HTTP_POST_VARS;

  if ($HTTP_POST_VARS['valid'] == 'true') {
	if ($remote_host = getenv('REMOTE_HOST')) {
	  if ($remote_host != 'secpay.com') {
		$remote_host = gethostbyaddr($remote_host);
	  }
	  if ($remote_host != 'secpay.com') {
		tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, tep_session_name() . '=' . $HTTP_POST_VARS[tep_session_name()] . '&payment_error=' . $this->code, 'SSL', false, false));
	  }
	} else {
	  tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, tep_session_name() . '=' . $HTTP_POST_VARS[tep_session_name()] . '&payment_error=' . $this->code, 'SSL', false, false));
	}
  }
}

function after_process() {
  return false;
}

function get_error() {
  global $HTTP_GET_VARS;

  if (isset($HTTP_GET_VARS['message']) && (strlen($HTTP_GET_VARS['message']) > 0)) {
	$error = stripslashes(urldecode($HTTP_GET_VARS['message']));
  } else {
	$error = MODULE_PAYMENT_SECPAY_TEXT_ERROR_MESSAGE;
  }

  return array('title' => MODULE_PAYMENT_SECPAY_TEXT_ERROR,
			   'error' => $error);
}

function check() {
  if (!isset($this->_check)) {
	$check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_SECPAY_STATUS'");
	$this->_check = tep_db_num_rows($check_query);
  }
  return $this->_check;
}

function install() {
  tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable SECpay Module', 'MODULE_PAYMENT_SECPAY_STATUS', 'True', 'Do you want to accept SECPay payments?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())");
  tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Merchant ID', 'MODULE_PAYMENT_SECPAY_MERCHANT_ID', 'secpay', 'Merchant ID to use for the SECPay service', '6', '2', now())");
  tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Transaction Currency', 'MODULE_PAYMENT_SECPAY_CURRENCY', 'Any Currency', 'The currency to use for credit card transactions', '6', '3', 'tep_cfg_select_option(array(\'Any Currency\', \'Default Currency\'), ', now())");
  tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Transaction Mode', 'MODULE_PAYMENT_SECPAY_TEST_STATUS', 'Always Successful', 'Transaction mode to use for the SECPay service', '6', '4', 'tep_cfg_select_option(array(\'Always Successful\', \'Always Fail\', \'Production\'), ', now())");
  tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort order of display.', 'MODULE_PAYMENT_SECPAY_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())");
  tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_SECPAY_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '2', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now())");
  tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('Set Order Status', 'MODULE_PAYMENT_SECPAY_ORDER_STATUS_ID', '0', 'Set the status of orders made with this payment module to this value', '6', '0', 'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name', now())");
}

function remove() {
  tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')");
}

function keys() {
  return array('MODULE_PAYMENT_SECPAY_STATUS', 'MODULE_PAYMENT_SECPAY_MERCHANT_ID', 'MODULE_PAYMENT_SECPAY_CURRENCY', 'MODULE_PAYMENT_SECPAY_TEST_STATUS', 'MODULE_PAYMENT_SECPAY_ZONE', 'MODULE_PAYMENT_SECPAY_ORDER_STATUS_ID', 'MODULE_PAYMENT_SECPAY_SORT_ORDER');
}
 }
?>

A little knowledge is dangerous, I SHOULD KNOW.

If Life Begins At 40, What ends????

Link to comment
Share on other sites

i have installed your checkout_shipping.php file on another demo shop

seelily.com/shop

i am not able to reproduce the problem

have you made any changes to your payment module?

i am going to take a look at that in a little while

are you using zones for payment?

 

i still think that this has something to do with $customer_default_address_id not being in the session specially if you have your payment module based on the zone this way it would need the address

please make sure that you have entered the shipto value and billto value in the session as i have suggested in both your create_account.php and login.php you use a diffrent file than mine so i do not know exactly what it would be and where to enter it

somewhere these values are inserted in the customers table

 

 

this seems to be the only thing diffrent about my checkout and the original checkout.

try to reproduce the effect in my demo shop link http://seelily.com/shop

i am not familiar with your payment module ;

Link to comment
Share on other sites

you should really integrate the confirmation page. Just echo the items that are in the basket with the dollar amount and then change the button to Ship! I think that would be spectacular!

Then essentually the customer signs up fills in the billing info along with their shipping choice and BAM checks out. A conversion rate masterpeice!

great job!

Link to comment
Share on other sites

I am really glad I found this Mod. A big thanks to Frank for taking the time to do this.

 

Has anyone had these errors? When I checkout and use the PWA option, and then click "Continue" at the bottom, I get a popup script error in IE that says:

 

Line: 63

Char: 6

Error: '$createaccount' is undefined

URL: https://www.mysite.com/store/create_account.php?

 

 

 

This was a clean install. So no other mods are affecting this. Does anyone have a fix?

 

 

Thanks,

Mike

Edited by toystoreking
Link to comment
Share on other sites

Mike, see post 433 in this thread for the solution to your problem (I hope) and post 461 is a fix you may need later when you find some variables are missing from your session.

Edited by radders
Link to comment
Share on other sites

toystoreking i hope everything is working for you david is corresct please make these changes

 

 

 

eww please remove the comment from the part for ccgv on top of the page only not the include in the html part

i might have a solution

 

 

 

cms i am working on this already but it is not as easy as you think there are a lot of issues that has to be resolved.i am almost ready i think some testing and some coding on the part of store owner is required

Edited by nana
Link to comment
Share on other sites

Mike, see post 433 in this thread for the solution to your problem (I hope) and post 461 is a fix you may need later when you find some variables are missing from your session.

 

Thanks guys. That fixed the problem. ;)

 

Also, I changed on one of code in the header. Not sure if it has been mentioned in this thread or not, but I changed:

 

<?php } else { ?><a href="<?php echo tep_href_link(FILENAME_CREATE_ACCOUNT, 'fromlogin=1', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGIN;
?></a>  |  <?php } ?>

 

To This

 

<?php } else { ?><a href="<?php echo tep_href_link(FILENAME_LOGIN, 'fromlogin=1', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGIN;
?></a>  |  <?php } ?>

 

Becuase if someone was logged out and they clicked on login, it was directing them to the account creation page. This fixed that problem, as they are now directed to the login page. ;)

 

 

Thanks again,

Mike

Edited by toystoreking
Link to comment
Share on other sites

Thank you so much for this! I've been waiting years for something like it :P

 

I found two things I had questions about.

 

One is a sort of bug with your add-on "fast easy checkout patch file".

 

I tried using it, but for some reason, it showed shipping as $24.95 no matter what I did. I am using multi-zone, shipping cost based on order total. I did get somewhere using your fixes on post 422, but basicly it was just showing me the shipping cost for the last time I hit the confirm order page. If I changed the order and tried to checkout without going to confirm order page it just showed the old shipping cost.

 

Without the add-on it is working perfectly though, I just was hoping to be able to show the customer exactly what he was being charged before asking for his CC.... didn't want to seem to pushy to get his cash :)

 

 

The other question I have is this. I LOVE create_account3.php, it is exactly what I think the create account page should be. Ask for shipping and billing at the same time, and keep from confusing the customer. My problem is, I require an account when checking out so I can't seem to use this page. Is there anyway I can get create_account3.php to work without your optional account creation part? I would love it if I could just add the password fields to the end of the page and let the checkout go on as normal. Is this possible?

 

Thank you again for this VERY useful contrib, from comments of my customers I think it will increase completed sales greatly.

 

:)

Link to comment
Share on other sites

mike thankyou very much

although i know about the few bugs but i am working on the next two version and my mind is all over the place so i have not added a new version

 

leo i worked a bit on the bts version which i think is what you need

it can work but it is a little more involved and creloaded is not supposed to be supported here i think

 

andrea you can add a create an account field to this page it should not be that difficult

although on return you will be back to same address for both

there is a contribution by ryan hobbs that i think is called address book enhancer which allows the customer to have a billing_address default and a shipping address default. if you use this page in connection with it then you can assign both it is very nice

as far as the addon patch i did not intend to do anything but to put the sections of the checkout in external boxes so they would be easy to move around.

if you are talking about total in the total_box not changing i am working on adding a button to let the customer update the total and maybe getting rid of checkout_confirmation.php altogether

uou can check it out

http://seelily.com/store

 

but if you are talking about the values in the shipping_box and one works just replace the content after the body tag or if you have a little time use a dff program see if you can see the problem

 

 

if anyone can give me a button for

update total or anything like that i would appreciate it since i am really bad with graphics

http://www.oscommerce.com/forums/index.php?showtopic=178160

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