Magento – product attribute
Posted on: October 15, 2010 /
Categories: Magento
Get attribute collection:
$attribute = $_product->getResource()->getAttribute('attribute_name');
Get attribute type:
$attribute->getAttributeType();
Get attribute Label:
$attribute->getFrontendLabel();
Get attribute default value:
$attribute->getDefaultValue();
Check if the attribute is visible:
$attribute->getIsVisible();
Check if the attribute is required:
$attribute->getIsRequired();