Extend Basket API
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!
- DamanMokha
- Posts: 13
- Joined: 29 Mar 2023, 03:00
Extend Basket API
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.
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.
Re: Extend Basket API
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/
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