Delivery service provider functionality

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!
kdim95
Advanced
Posts: 205
Joined: 26 Aug 2022, 12:17

Delivery service provider functionality

Post by kdim95 » 17 Aug 2023, 11:35

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.

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

Re: Delivery service provider functionality

Post by aimeos » 18 Aug 2023, 13:02

You can create a basket plugin and register for the required events:
https://aimeos.org/docs/latest/provider ... t-plugins/
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply