Knowledgebase: One Page Checkout
If a customers payment is declined, or they use PayPal Pro the customer notes are not saved, how can I save this with the users profile?
Posted by Nick Poindexter on 04 March 2010 05:32 PM
Make the following change to save the notes in the customers current session:

payment/auth.php

After:

x_load('files',"payment");


Add:

x_session_register('save_customer_notes');
$save_customer_notes = $_POST['Customer_Notes'] ? $_POST['Customer_Notes'] : $HTTP_POST_VARS['Customer_Notes'];


/cart.php:

After:

// Checkout One :: www.alteredcart.com //
if ($active_modules['Checkout_One'])
require $xcart_dir."/modules/Checkout_One/checkout_one_ajax.php";
// End Checkout One //


Add:

if ($active_modules['Checkout_One']){

x_session_register('save_customer_notes');

if ($mode == 'order_message' && $orderids)
$save_customer_notes = '';

$smarty->assign('Customer_Notes', $save_customer_notes);

}



skin1/modules/Checkout_One/checkout_one.tpl:

change this:

<td nowrap="nowrap">
Help Desk Software by Kayako