Jump to content
Sign in to follow this  
barry100

make paypal ipn send comments

Recommended Posts

Hi all

Is it possible to make the paypal ipn send what is in the comments box before the order is completed or paid, the problem im having is that although paypal is sending the order before the payment is made some times there is no comments being sent (i think because people are paying then not returning to the shop) so the comments are being lost in transit.

Share this post


Link to post
Share on other sites
Hi all

Is it possible to make the paypal ipn send what is in the comments box before the order is completed or paid, the problem im having is that although paypal is sending the order before the payment is made some times there is no comments being sent (i think because people are paying then not returning to the shop) so the comments are being lost in transit.

 

 

If you still need a solution for this I found it out how the comments are being sent to admin before getting linked to paypal.

Share this post


Link to post
Share on other sites
If you still need a solution for this I found it out how the comments are being sent to admin before getting linked to paypal.

 

Here is the solution:

 

in paypal_ipn.php on line about 128

 

after

 

tep_db_perform(TABLE_ORDERS_PRODUCTS, $sql_data_array);

 

$order_products_id = tep_db_insert_id();

 

 

fill in this

 

 

$customer_notification = (SEND_EMAILS == 'true') ? '1' : '0';

$sql_data_array = array('orders_id' => $insert_id,

'orders_status_id' => $order->info['order_status'],

'date_added' => 'now()',

'customer_notified' => $customer_notification,

'comments' => $order->info['comments']);

tep_db_perform(TABLE_ORDERS_STATUS_HISTORY, $sql_data_array);

 

 

Best Wishes Strub

Share this post


Link to post
Share on other sites
Here is the solution:

 

in paypal_ipn.php on line about 128

 

after

 

tep_db_perform(TABLE_ORDERS_PRODUCTS, $sql_data_array);

 

$order_products_id = tep_db_insert_id();

fill in this

$customer_notification = (SEND_EMAILS == 'true') ? '1' : '0';

$sql_data_array = array('orders_id' => $insert_id,

'orders_status_id' => $order->info['order_status'],

'date_added' => 'now()',

'customer_notified' => $customer_notification,

'comments' => $order->info['comments']);

tep_db_perform(TABLE_ORDERS_STATUS_HISTORY, $sql_data_array);

Best Wishes Strub

 

 

I was having the same problem and just put this fix on my site - it works great!

 

THANKS!!!


The tomb could not hold God's Son...but your heart can

Share this post


Link to post
Share on other sites
I was having the same problem and just put this fix on my site - it works great!

 

THANKS!!!

 

 

Hi can you explain what problem this fixed exactly?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×