helper('customer/address')->getConfig($key); } public function getFieldIdFormat() { if (!$this->hasData('field_id_format')) { $this->setData('field_id_format', '%s'); } return $this->getData('field_id_format'); } public function getFieldNameFormat() { if (!$this->hasData('field_name_format')) { $this->setData('field_name_format', '%s'); } return $this->getData('field_name_format'); } public function getFieldId($field) { return sprintf($this->getFieldIdFormat(), $field); } public function getFieldName($field) { return sprintf($this->getFieldNameFormat(), $field); } /** * Retrieve customer attribute instance * * @param string $attributeCode * @return Mage_Customer_Model_Attribute|false */ protected function _getAttribute($attributeCode) { return Mage::getSingleton('eav/config')->getAttribute('customer', $attributeCode); } }