Get Dropdown Product Attribute Value in Magento 2
<?php
$attribute_code = 'availability';
echo $_product->getResource()->getAttribute($attribute_code)->getFrontend()->getValue($_product);
?>
<?php
$attribute_code = 'availability';
echo $_product->getResource()->getAttribute($attribute_code)->getFrontend()->getValue($_product);
?>
No comments:
Post a Comment