Products with custom price/attributes
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Products with custom price/attributes
We are using aimeos in one project and there is the demand to add kind products derived from a configurator to the aimeos cart.
Before I knew about the dynamic part I used a POST request to
with a body of
but know I need also to provide additional attributes AND a a price I can retrieve also via API on server side but no clue how I can do this.
as you know the customer as well, feel free to contact me also via slack
Before I knew about the dynamic part I used a POST request to
Code: Select all
at/jsonapi?ai[action]=get&ai[controller]=Jsonapi&ai[id]=default&ai[related]=product&ai[resource]=basket
Code: Select all
{
"data": [
{
"attributes": {
"product.id": "761",
"quantity": 1,
"stocktype": "default"
}
}
]
}
as you know the customer as well, feel free to contact me also via slack
Re: Products with custom price/attributes
All attributes you want to hand over to the basket must be assigned to the product. If you want to customize the price based on an API request, you can use price rules or basket plugins:
- https://aimeos.org/docs/latest/providers/rules/
- https://aimeos.org/docs/latest/provider ... t-plugins/
Keep an eye on the performance because calling external APIs can slow down things drastically.
- https://aimeos.org/docs/latest/providers/rules/
- https://aimeos.org/docs/latest/provider ... t-plugins/
Keep an eye on the performance because calling external APIs can slow down things drastically.
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