How to filter product by property (JsonAPI)?

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
Jairus34
Posts: 31
Joined: 05 Aug 2024, 07:34

How to filter product by property (JsonAPI)?

Post by Jairus34 » 04 Mar 2025, 07:34

Hi aimeos,

In JSON API, how can I filter products by property? I am trying to filter product by package-width, height, and weight.

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

Re: How to filter product by property (JsonAPI)?

Post by aimeos » 05 Mar 2025, 09:09

You can use:

Code: Select all

&filter[&&][][!=][product:prop("package-weight",null,"10")]=
But you can only filter for discrete values, not for ranges like > 10.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply