Sir Lance Posted February 10, 2009 Share Posted February 10, 2009 Hi To make my system a little easy to handle, I have added a couple of extra status's in the order_status table which are Pending (Bank Transfer) Pending (Paypal eCheque) I also changed Delivered to Delivered (Posted) as I get so my questions from users saying what the heck, I only ordered the products as hour ago and I have not recieved it etc etc etc. When an order is a Bank Transfer then I manually change the status so I can see new orders comming in. The status of Pending (Bank Transfer), or Pending (Paypal eCheque) tells me I need to poll my Bank Account or wait for the PayPal eCheque email. For PayPal eCheques, I note that the order is updated to Paypal (Pending) but in the comments states that the payment is an eCheque. I use batch processing, so I don't often see eCheque come up and in some cases I have posted to the user proir to their payment even clearing. I have been lucky I guess. What I would like is when a payment is made by Paypal eCheque, I would like to have the status change to Pending (Paypal eCheque) instead of just Pending. I assume the change would be in paypal_ipn.php, but i am not quite sure of the change? I see in the paypal_ipn.php code that the (around line 206) that 'comments' => $order->info['comments']; This is code where I think I can strip out whether the Paypal payment is an eCheque or not. Then (around line 654) there is tep_db_query("insert into " . TABLE_CONFIGURATION . " .... MODULE_PAYMENT_IPN_COMP_ORDER_STATUS .. is set to 0, which equates to "Pending" in teh order_status database. Does it therefore make sence that if I do have an eCheque payment, I change this to my say 7 which is equates to Pending (eCheque) in my database ??? I find this code may be hard to test on my localserver and I am not keen to muk with it on my live server hence my question. Now for Bank Transfer, there is not comment field updated just status, however I assume I will have to update checkout_comfirmation.php or checkout_process.php? This may have already been answered in teh forums, but I must admit I try and search and get so many results (100's of pages), it makes it impossible to find my answer. Thanks in advance. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.