Allows to add new fields to the Edit Company Information form in the Administration Area.
Usually this event is used together with the
shop:onExtendCompanyInformationModel event.
To add new fields to the form, call the
add_form_field() method of the
company information object.
public function subscribeEvents()
{
Backend::$events->addEvent('shop:onExtendCompanyInformationModel', $this, 'extend_company_information_model');
Backend::$events->addEvent('shop:onExtendCompanyInformationForm', $this, 'extend_company_information_form');
}
public function extend_company_information_model($company_information)
{
$company_information->define_column('x_extra_description', 'Extra description');
}
public function extend_company_information_form($company_information, $context)
{
$company_information->add_form_field('x_extra_description')->tab('Custom');
}