Custom actions after order is placed

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
michal.fehér
Posts: 44
Joined: 05 Feb 2018, 09:57

Custom actions after order is placed

Post by michal.fehér » 04 Apr 2018, 13:26

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.

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Custom actions after order is placed

Post by aimeos » 04 Apr 2018, 22:09

When do you want to step in? Before or after the payment? Does it require an user action or not?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

michal.fehér
Posts: 44
Joined: 05 Feb 2018, 09:57

Re: Custom actions after order is placed

Post by michal.fehér » 05 Apr 2018, 10:45

Before the payment. It doesnt require an user action, should be automatical.

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Custom actions after order is placed

Post by aimeos » 06 Apr 2018, 08:37

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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Hussnain Sheikh
Posts: 1
Joined: 02 Feb 2019, 13:39

Re: Custom actions after order is placed

Post by Hussnain Sheikh » 02 Feb 2019, 13:42

Hello,

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

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Custom actions after order is placed

Post by aimeos » 02 Feb 2019, 20:00

Depends on what you want to do. Can you tell us what you want to achieve?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply