Could someone help me i want to hide the attribute if its have empty vale on product details page.
Example
<?php // START FABRIC ATTRIBUTE
$attributeName = $_product->getResource()->getAttribute('fabric_composition');
if ($attributeName) {
$labelValue = $attributeName->getFrontend()->getValue($_product);
}
echo $labelValue;
// END FABRIC ATTRIBUTE
?>
I have fabric_composition attribute i want to add if condition and want to hide if attribute value is empty Thankyou