/** * Retrieve custom fields list to be used on registration page * * @param integer $templatePlaceId Indicates whether fields will be placed at the top of a template or at the bottom (false-all; 1-top; 2-bottom). * * @return array or boolean false */ public function getCustomerFieldList($templatePlaceId = false) { $fields = false; if ($this->isEnabled()) { $fields = $this->_cfmModel->getCustomerAtrributeList($templatePlaceId); if (!$templatePlaceId && is_array($fields)) { $fieldsTmp = array(); foreach ($fields as $fieldsArr) { $fieldsTmp = array_merge($fieldsTmp, $fieldsArr); } $fields = $fieldsTmp; } } return $fields; }
/** * @return string */ public function getFieldHtml($field, $setName, $type = 'onepage') { return $this->_mainModel->getAttributeHtml($field, $setName, $type); }