Skip to main content
added 142 characters in body
Source Link
aravind
  • 1.9k
  • 13
  • 26

Check with my code,

$list =  $this->getRequest()->getParam('list', false);
$filter_ids = explode(",",$list);
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$productcollection = $objectManager->create('Magento\Catalog\Model\ResourceModel\Product\CollectionFactory');
$categoryProducts =  $productcollection->create()->addAttributeToSelect('*')->addAttributeToFilter(['color', 'system'],
    [    array(
        ['in'    array('attribute'=> 'color','in' => $filter_ids]$filter_ids),
        ['in'    array('attribute'=> 'system','in' => $filter_ids]$filter_ids),
    ]    )
    );

Check with my code,

$list =  $this->getRequest()->getParam('list', false);
$filter_ids = explode(",",$list);
$productcollection = $objectManager->create('Magento\Catalog\Model\ResourceModel\Product\CollectionFactory');
$categoryProducts =  $productcollection->create()->addAttributeToSelect('*')->addAttributeToFilter(['color', 'system'],
    [
        ['in' => $filter_ids],
        ['in' => $filter_ids]
    ]);

Check with my code,

$list =  $this->getRequest()->getParam('list', false);
$filter_ids = explode(",",$list);
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$productcollection = $objectManager->create('Magento\Catalog\Model\ResourceModel\Product\CollectionFactory');
$categoryProducts =  $productcollection->create()->addAttributeToSelect('*')->addAttributeToFilter(
        array(
            array('attribute'=> 'color','in' => $filter_ids),
            array('attribute'=> 'system','in' => $filter_ids),
        )
    );
added 4 characters in body
Source Link
aravind
  • 1.9k
  • 13
  • 26

Check with my code,

$list =  $this->getRequest()->getParam('list', false);
$filter_ids = explode(",",$list);
$productcollection = $objectManager->create('Magento\Catalog\Model\ResourceModel\Product\CollectionFactory');
$categoryProducts =  $productcollection->create()->addAttributeToSelect('*')->addFieldToFilter>addAttributeToFilter(['color', 'system'],
    [
        ['in' => $filter_ids],
        ['in' => $filter_ids]
    ]);

Check with my code,

$list =  $this->getRequest()->getParam('list', false);
$filter_ids = explode(",",$list);
$productcollection = $objectManager->create('Magento\Catalog\Model\ResourceModel\Product\CollectionFactory');
$categoryProducts =  $productcollection->create()->addAttributeToSelect('*')->addFieldToFilter(['color', 'system'],
    [
        ['in' => $filter_ids],
        ['in' => $filter_ids]
    ]);

Check with my code,

$list =  $this->getRequest()->getParam('list', false);
$filter_ids = explode(",",$list);
$productcollection = $objectManager->create('Magento\Catalog\Model\ResourceModel\Product\CollectionFactory');
$categoryProducts =  $productcollection->create()->addAttributeToSelect('*')->addAttributeToFilter(['color', 'system'],
    [
        ['in' => $filter_ids],
        ['in' => $filter_ids]
    ]);
Source Link
aravind
  • 1.9k
  • 13
  • 26

Check with my code,

$list =  $this->getRequest()->getParam('list', false);
$filter_ids = explode(",",$list);
$productcollection = $objectManager->create('Magento\Catalog\Model\ResourceModel\Product\CollectionFactory');
$categoryProducts =  $productcollection->create()->addAttributeToSelect('*')->addFieldToFilter(['color', 'system'],
    [
        ['in' => $filter_ids],
        ['in' => $filter_ids]
    ]);