Page 1 of 1

Custom actions after order is placed

Posted: 04 Apr 2018, 13:26
by michal.fehér
Hi. I would like to extend the order functionality. I want to call external API as soon as the new order is placed. What would be the best approach for doing so? Are there any hooks I could use?
Thanks.

Re: Custom actions after order is placed

Posted: 04 Apr 2018, 22:09
by aimeos
When do you want to step in? Before or after the payment? Does it require an user action or not?

Re: Custom actions after order is placed

Posted: 05 Apr 2018, 10:45
by michal.fehér
Before the payment. It doesnt require an user action, should be automatical.

Re: Custom actions after order is placed

Posted: 06 Apr 2018, 08:37
by aimeos
You can implement that as basket plugin listening to the "setOrder.before" event:
- https://github.com/aimeos/aimeos-core/b ... d.php#L467
- https://aimeos.org/docs/Developers/Libr ... et_plugins

Re: Custom actions after order is placed

Posted: 02 Feb 2019, 13:42
by Hussnain Sheikh
Hello,

I want to call an external API after the order is created. Is there any hook or event for it? Thanks

Re: Custom actions after order is placed

Posted: 02 Feb 2019, 20:00
by aimeos
Depends on what you want to do. Can you tell us what you want to achieve?