JsonApi search by product attribute

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
PaoloLegaspi
Posts: 15
Joined: 07 Nov 2024, 15:02

JsonApi search by product attribute

Post by PaoloLegaspi » 07 Nov 2024, 15:15

Is it possible to search a product based on an attribute? I created an attribute called gender and assigned it to type hidden. With it has attributes Male and Female.

Is this correct?

Code: Select all

/jsonapi/product?filter[%3D%3D][product:has('attribute','default',462), '!=', null]&include=attribute

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

Re: JsonApi search by product attribute

Post by aimeos » 08 Nov 2024, 07:57

Use f_attrid, f_optid or f_oneid for searching for attributes:
https://aimeos.org/docs/latest/frontend ... attributes
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply