Custom actions after order is placed
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 44
- Joined: 05 Feb 2018, 09:57
Custom actions after order is placed
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.
Thanks.
Re: Custom actions after order is placed
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, give us a star
If you like Aimeos, give us a star
-
- Posts: 44
- Joined: 05 Feb 2018, 09:57
Re: Custom actions after order is placed
Before the payment. It doesnt require an user action, should be automatical.
Re: Custom actions after order is placed
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
- 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, give us a star
If you like Aimeos, give us a star
-
- Posts: 1
- Joined: 02 Feb 2019, 13:39
Re: Custom actions after order is placed
Hello,
I want to call an external API after the order is created. Is there any hook or event for it? Thanks
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
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, give us a star
If you like Aimeos, give us a star