Help with Filtering Products Using product.config
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!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Help with Filtering Products Using product.config
Hi community. I'm trying to filter products based on product.config, but I'm running into some issues. Here’s my current code:
Code: Select all
$productManager = \Aimeos\MShop::create( $this->context(), 'product' );
$filter = $productManager->filter();
$filter->add( 'product.config', '==', ); //What to put here?
$items = $productManager->search( $filter );
Re: Help with Filtering Products Using product.config
The product "config" property is just a key/value store which you can't use for filtering. If you nee filtering for your data, use product properties instead:
https://aimeos.org/docs/latest/manual/p ... cteristics
https://aimeos.org/docs/latest/manual/p ... cteristics
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
