Magento 2 : Get Custom Attribute Value of Product

To fetch value of attribute Use:

First get Your Product Collection and then

$this->getProduct()->getAttributeText('attribute_text');

e.g: $this->getProduct()->getAttributeText('metal_pads');

Or

$this->getProduct()->getResource()->getAttributeRawValue($this->getProduct()->getId(),'metal_pads',$this->_storeManager->getStore()->getId());

You can check this question as reference:

How to show the dropdown attibute value using getData() method in magento 2?

Hopefully, It will help you


You can get the product attribute value like this,

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$product = $objectManager->get('Magento\Catalog\Model\Product')->load('YOUR PRODUCT ID');
echo $product->getMetalPads();