Within a product list, I would like to access
for each product of the collection. However, this is always
null instead of either of the 4 states. I have already added
<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Catalog:etc/catalog_attributes.xsd"> <group name="catalog_product"> <attribute name="visibility" /> </group> </config>
app/code/<vendor>/<module>/etc/catalog_attributes.xml. While this works fine for other custom properties of the products, it does not seem to have any affect on the
visibility property - and I have no idea why.