Filter product by price
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Filter product by price
Hi,
I use aimeos laravel package
How can I filter between two prices.
I tried this filter[&&][][>][product.price]=100&filter[&&][][<][product.price]=150
But I got an error
"title": "Invalid name \"product.price\""
I didn't find any information in documentation about price.
Thank you
I use aimeos laravel package
How can I filter between two prices.
I tried this filter[&&][][>][product.price]=100&filter[&&][][<][product.price]=150
But I got an error
"title": "Invalid name \"product.price\""
I didn't find any information in documentation about price.
Thank you
Re: Filter product by price
The products don't have a property named "product.price". To filter by price, use "index.price:value" to use the indexed prices for the products.
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
Re: Filter product by price
Hi,
Thank you for reply.
I don't understand how can I build url
I try
filter[&&][][==][index.price:100] or filter[&&][][==][index.price]=100 but it doesn't work
Thank you
Thank you for reply.
I don't understand how can I build url
I try
filter[&&][][==][index.price:100] or filter[&&][][==][index.price]=100 but it doesn't work
Thank you
Re: Filter product by price
Usually, you want to filter by price range, to the filter parameter would be:
Please keep in mind that you have to urlencode() special characters like "&" and "=".
Code: Select all
filter[&&][][>=][index.price:value("EUR")]=100&filter[&&][][<=][index.price:value("EUR")]=200
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
Re: Filter product by price
Thank you very much, it works