Products with custom price/attributes

Questions around the TYPO3 integration and plugins
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!
just2b
Posts: 1
Joined: 05 Jun 2024, 07:31

Products with custom price/attributes

Post by just2b » 05 Jun 2024, 07:46

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

Code: Select all

at/jsonapi?ai[action]=get&ai[controller]=Jsonapi&ai[id]=default&ai[related]=product&ai[resource]=basket
with a body of

Code: Select all

{
    "data": [
        {
            "attributes": {
                "product.id": "761",
                "quantity": 1,
                "stocktype": "default"
            }
        }
    ]
}
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

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

Re: Products with custom price/attributes

Post by aimeos » 07 Jun 2024, 07:32

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.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply