goog morning,
I have in my checkout_process.php following.
It works very well.
// unregister session variables used during checkout
tep_session_unregister('sendto');
tep_session_unregister('billto');
tep_session_unregister('shipping');
tep_session_unregister('payment');
tep_session_unregister('comments');
// coupons addon start
if (isset($ot_coupon) && is_object($ot_coupon) && $ot_coupon->redeem==true) {
tep_db_query("insert into " . TABLE_COUPONS_SALES . " (coupons_code, customers_id, orders_id, date_purchased) values ('" . tep_db_input($ot_coupon->coupons_code) . "', '" . (int)$customer_id . "', '" . (int)$insert_id . "', now())");
tep_session_unregister('coupon_code_code');
tep_session_unregister('coupon_code_value');
}
// coupons addon end
tep_redirect(tep_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL'));
require(DIR_WS_INCLUDES . 'application_bottom.php');
?>
regards
Diana