This is the API docs for LemonStand V1, which has been discontinued. LemonStand is now a cloud based platform, available at lemonstand.com.

LemonStand API

shop:onExtendCustomerGroupForm event

Triggered by Shop_CustomerGroup
Author LemonStand eCommerce Inc.

Event handler signature

public void event_onExtendCustomerGroupForm(Shop_Customer $customer, string $context)
$customer Shop_Customer specifies the customer object.
$context string specifies the execution context.
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');
}