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:onExtendCompanyInformationForm event

Triggered by Shop_CompanyInformation
Author LemonStand eCommerce Inc.

Event handler signature

public void event_onExtendCompanyInformationForm(Shop_CompanyInformation $company_information, string $context)
$company_information Shop_CompanyInformation specifies the company information object.
$context string specifies the execution context.
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');
}