Hi, I'm am using a template override for the profile default.php and I need to only show certain custom fields as I don't want the customer to be able to change these fields.
To stop calling all the fields I deleted lines 249-265 - working well.
$fields = $this->form->getFields();
if (isset($fields))
{
$selectedState = $fields->value;
}
foreach ($fields as $field)
{
echo $field->getControlGroup($bootstrapHelper);
}
Now, how do I call individual custom fields I created (read-only). I know I can call <?php echo $this->item->first_name; ?> but I am having problems calling my custom fields osm_directory or osm_services_categories (multi-select fields) etc..
Is there an easy way of doing this?
Regards
Claudio