File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
app/code/Magento/CatalogGraphQl/Model/Resolver/Products/Attributes Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,23 @@ public function getAttributes() : AttributeCollection
46
46
$ this ->collection = $ this ->collectionFactory ->create ();
47
47
$ this ->collection ->addFieldToFilter ('is_user_defined ' , '1 ' );
48
48
$ this ->collection ->addFieldToFilter ('attribute_code ' , ['neq ' => 'cost ' ]);
49
+ $ this ->collection ->addFieldToFilter (
50
+ [
51
+ 'is_comparable ' ,
52
+ 'is_filterable ' ,
53
+ 'is_filterable_in_search ' ,
54
+ 'is_visible_on_front ' ,
55
+ 'used_in_product_listing ' ,
56
+ 'used_for_sort_by '
57
+ ],
58
+ [
59
+ ['eq ' => '1 ' ],
60
+ ['eq ' => '1 ' ],
61
+ ['eq ' => '1 ' ],
62
+ ['eq ' => '1 ' ],
63
+ ['eq ' => '1 ' ],
64
+ ['eq ' => '1 ' ]
65
+ ]);
49
66
}
50
67
51
68
return $ this ->collection ->load ();
You can’t perform that action at this time.
0 commit comments