OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: make paypal ipn send comments
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > Contributions / Add-Ons > Contribution Development
barry100
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.
strub
QUOTE (barry100 @ Apr 25 2006, 09:13 AM) *
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.
strub
QUOTE (strub @ Aug 18 2007, 02:49 PM) *
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
Chazbot72
QUOTE (strub @ Aug 18 2007, 09:52 AM) *
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!!!
none_uk
QUOTE (Chazbot72 @ Feb 5 2008, 08:23 PM) *
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?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.