I wrote a simple code for a custom tab to display all atrributes that had a value. But it's returning system attributes that clearly should not be displayed. In the attributes management page in Admin, I checked and triple checked to make sure these attributes were set to NOT display. I refreshed all indexes and flushed all cache, but still showing. Any ideas why this is happening?
Code below, for reference.
$_product = $this->getProduct();
$attributes = Mage::getResourceModel('catalog/product_attribute_collection')
->getItems();
foreach ($attributes as $attribute){
$productAttributeCode=$attribute->getAttributeCode();
$productAttributeData=$_product->getData($productAttributeCode);
if ($productAttributeData > ""){
if ($productAttributeCode != "status"){
echo '<div class="std">';
echo $attribute->getFrontendLabel();
echo ': ';
//echo $productAttributeCode;
//echo ': ';
echo $productAttributeData;
echo '</div>';
}
}
}