01.
public
function
subscribeEvents()
02.
{
03.
Backend::
$events
->addEvent(
'shop:onExtendOrderModel'
,
$this
,
'extend_order_model'
);
04.
Backend::
$events
->addEvent(
'shop:onExtendOrderForm'
,
$this
,
'extend_order_form'
);
05.
}
06.
07.
public
function
extend_order_model(
$order
,
$context
)
08.
{
09.
$order
->define_column(
'x_extra_description'
,
'Extra description'
);
10.
}
11.
12.
public
function
extend_order_form(
$order
,
$context
)
13.
{
14.
$order
->add_form_field(
'x_extra_description'
)->tab(
'Billing Information'
);
15.
}