I have two attribute sets in my store: 'default' and 'clothing'. The only difference is that clothing set has an extra attribute called "Fit".
I added a custom section in product pages to display the "Fit" attribute:
$fitLabel = $_product->getResource()->getAttribute('fit')->getFrontendLabel(); $fitValue = $_product->getResource()->getAttribute('fit')->getFrontend()->getValue($_product);
However, "Fit" attribute appears in ALL product pages, not only clothing.
How can I add a condition to display the Fit attribute only in clothing products (products with 'clothing' attribute set)?