Extend Basket API

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!
User avatar
DamanMokha
Posts: 13
Joined: 29 Mar 2023, 03:00

Extend Basket API

Post by DamanMokha » 26 May 2023, 04:40

Hi,

I'm currently working with the headless version and have created an Aimeos extension. In this extension, I have added a few fields using decorators. However, I would like to include some custom-calculated fields in the Basket API that provide the exact total amount by performing calculations. Currently, the Basket API sends costs, prices, and rebates separately.

Essentially, my question is how to extend the Basket API to incorporate custom dynamic fields.

Thank you for your assistance.

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

Re: Extend Basket API

Post by aimeos » 27 May 2023, 08:53

You can use basket plugins to modify the basket content and set properties you have defined in decorators:
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