Delivery service provider functionality
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!
Delivery service provider functionality
Laravel framework version: 10.16.1
Aimeos Laravel version: 2023.04.*
PHP Version: 8.2.8
Environment: Linux
Hello,
I am looking to implement the following functionality for delivery service providers:
Every time something in the basket changes, there needs to be a call to an outside API.
The API will provide a list of available delivery methods based on the basket data.
The returned values from the API need to be stored in the basket.
The values stored in the basked will be used by the isAvailable() method in every delivery service provider to determine if the delivery service should be available.
Where exactly can I make the call to the API so that the delivery information from the API is stored in the current basket?
The call to the API needs to be made even if the jsonapi is used to add products to the basket.
Aimeos Laravel version: 2023.04.*
PHP Version: 8.2.8
Environment: Linux
Hello,
I am looking to implement the following functionality for delivery service providers:
Every time something in the basket changes, there needs to be a call to an outside API.
The API will provide a list of available delivery methods based on the basket data.
The returned values from the API need to be stored in the basket.
The values stored in the basked will be used by the isAvailable() method in every delivery service provider to determine if the delivery service should be available.
Where exactly can I make the call to the API so that the delivery information from the API is stored in the current basket?
The call to the API needs to be made even if the jsonapi is used to add products to the basket.
Re: Delivery service provider functionality
You can create a basket plugin and register for the required events:
https://aimeos.org/docs/latest/provider ... t-plugins/
https://aimeos.org/docs/latest/provider ... t-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