Thanks for the reply Lane, hope you had a good Xmas and New Year!
What I'm after is a mod that will move the customers order from their shopping cart to the Orders table in OSC. Until then there is no order status to change! If the customer dosen't return to the site, the order is not completed at the OSC end although Paypal processes the payment.
It's the part that triggers the confirmation emails to ourselves and the customers that we need a manual way of applying to orders still in the cart table.
I'm hoping that someone can look at your code as a basis and add a "Complete" button or checkbox which will do this on a per customer basis, of course I don't want to do it for all customers at once. Then we can send out follow up emails using your system to try to encourage our remaining incomplete customers to return. Our site is quite specialised and I don't think there are that many who have abandoned their carts for no good reason, though the system should hopefully "jog their memories" to return & complete their order.
One thing I've implemented on an MS2 version of the site (which I'm having fun & games migrating, but thats another story) is a Wishlist, since I think many have left items in the cart intending to come back & purchase at a later date!
Once again, many thanks for the mod!