Allows to add new fields to the Create/Edit Customer Group form in the Administration Area.
Usually this event is used together with the
shop:onExtendCustomerGroupModel event.
To add new fields to the customer group form, call the
add_form_field() method of the
customer group object.
public function subscribeEvents()
{
Backend::$events->addEvent('shop:onExtendCustomerGroupModel', $this, 'extend_customer_group_model');
Backend::$events->addEvent('shop:onExtendCustomerGroupForm', $this, 'extend_customer_group_form');
}
public function extend_customer_group_model($customer_group, $context)
{
$customer_group->define_column('x_extra_description', 'Extra description');
}
public function extend_customer_group_form($customer_group, $context)
{
$customer_group->add_form_field('x_extra_description');
}