New answers tagged

0

please follow this link if you want product collection using graphql https://github.com/viveksh2021/GraphQL


0

I have the code below working on my local: public function afterGetProductCollection( \Magento\Catalog\Model\Layer $subject, \Magento\Catalog\Model\ResourceModel\Product\Collection $collection ) { $values = [117,136,124,125,127]; foreach ($values as $value) { $filters[] = [ 'attribute'=> '...


0

How about you change your code like this: $productCollection = $this->getLayer()->getProductCollection(); $productCollection->addAttributeToFilter('fabricolor', ['finset' => [16,17]]); echo $productCollection->getSelect(); or $productCollection = $this->getLayer()->getProductCollection(); $productCollection->addAttributeToFilter('...


Top 50 recent answers are included