Engine23

Magento - Custom Customer attributes - How to get them in a block or phtml

$attribute = Mage::getModel('eav/config')->getAttribute('customer','subscription_length');
$optionArray = array();
foreach ($attribute->getSource()->getAllOptions(true, true) as $option) {
$optionArray[$option['value']] = $option['label'];
}

Share: