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.
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.