Knowledgebase



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 - NA - on 01 December 2010 10:44 AM


--------------------------------------------------------------------------------

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:



Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: