Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

make paypal ipn send comments


barry100

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.

Link to comment
Share on other sites

  • 1 year later...
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.

Link to comment
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

Link to comment
Share on other sites

  • 5 months later...
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

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...