Hi I am trying to add a radio button on \storefront\controller\pages\account\subscriber.php Line #138
$this->data['form']['newsletter_type'] = $form->getFieldHtml(array(
'type' => 'radio',
'name' => $this->language->get('text_newsletter_type'); // tried 'label' => $this->language->get('text_newsletter_type'); // 'name' => 'Newsletter Type:', // nothing displays label
'value' => '1',
'options' => array(
'1' => 'Digital',
'0' => 'Print',
),
));
added this to storefront\language\english\account\newsletter.xml
<definition>
<key>text_newsletter_type</key>
<value><![CDATA[Newsletter Type:]]></value>
</definition>
on the form I am not able to get label to display, options are displaying. I don't mind hardcoding this word in subscriber.php but I need a label for those radio button. I did clear browser cache and system cache
Can someone point my mistake? or help me how to fix it