twigster Posted May 2, 2006 Posted May 2, 2006 Hi all When I type in https://www.mydomain.com/catalog/checkout_process.php the order confirmation screen loads and an empty order is inserted into the database containing just postage costs. Any Ideas why this would happen and how to stop this? Many Thanks Mike
Guest Posted May 3, 2006 Posted May 3, 2006 Make sure the following is at the top of the file: include('includes/application_top.php'); // if the customer is not logged on, redirect them to the login page if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(array('mode' => 'SSL', 'page' => FILENAME_CHECKOUT_PAYMENT)); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } if (!tep_session_is_registered('sendto')) { tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); } if ( (tep_not_null(MODULE_PAYMENT_INSTALLED)) && (!tep_session_is_registered('payment')) ) { tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); } // avoid hack attempts during the checkout procedure by checking the internal cartID if (isset($cart->cartID) && tep_session_is_registered('cartID')) { if ($cart->cartID != $cartID) { tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')); } } Matti
Recommended Posts
Archived
This topic is now archived and is closed to further replies.