How to Filter Discounted Products Using JSON:API?

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: 35
Joined: 07 Nov 2024, 15:02

How to Filter Discounted Products Using JSON:API?

Post by PaoloLegaspi » 24 Nov 2024, 10:46

Hey there,
Is it possible to filter products with discounts or rebates using JSON:API routes and queries? If so, could you share how to set that up? Thanks a lot!

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

Re: How to Filter Discounted Products Using JSON:API?

Post by aimeos » 25 Nov 2024, 11:53

You can't filter for discounted products (products with a value greater than 0.00 for "rebate" in price items) by default because the rebate value isn't added to the index in the mshop_index_price table and there's no search configuration like this in the price index manager: https://github.com/aimeos/aimeos-core/b ... hp#L31-L51

If you can create a PR with the necessary changes, we are happy to merge it.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply