Author Topic: Add action just after order saved in Mysql  (Read 2212 times)

pcollet

  • Beginner
  • *
  • Posts: 9
Add action just after order saved in Mysql
« on: February 04, 2008, 18:45:01 pm »
Hello,

I need an advice.

I want to do an action, just after the order is confirmed and saved in Mysql. To go in more details :
    I want to store order_id  in another database. I would prefer to do in it in realtime. (So I have excluded to scan the table through a cronjob by example).

I' ve found that the function that writes the order ind database is 'Add' in ps_checkout class.

I will add my code at this point. But is there any other possible solution ? Through Mambots  or Plugin ? a less more intrusive modification (I dislike hack as it needs special attention on upgrade).

Thanks for your point of view.
Patrick Collet 


jmds

  • Guest
Re: Add action just after order saved in Mysql
« Reply #1 on: February 04, 2008, 18:56:02 pm »
have a look through ps_checkout.php. You will find the order save routines in there around line 800.