magento / graphql-ce

[ARCHIVED] Please use magento/magento2 project
https://github.com/magento/magento2
Open Software License 3.0
131 stars 156 forks source link

Allow to hide configurable options from product list if "Used in Product Listing" is set as "NO" #945

Closed donnes closed 4 years ago

donnes commented 5 years ago

Description (*)

Allow defining if a configurable options attribute can be displayed in product listing using the admin settings "Used in Product Listing" in the store attributes section.

Expected behavior (*)

When "Used in Product Listing" is set to "NO" in Magento Admin, the configurable options attribute needs to be hidden from the product listing, but not in the product detail.

Benefits

It's the same behavior as the Magento Luma PHP (and others) theme already does.

Additional information

Today the same query to get a single product is used to create a product listing or perform a product search. So maybe we need a way to identify if the query is performing a product listing search.