shop:onConfigureOrdersPage
Use this event to configure the orders page, for example to add a filter to the orders list. The event handler accepts one parameter, the orders controller (class Shop_Orders) and need not return anything.
For example, adding a billing state filter to the orders page (see also List filters article): public function subscribeEvents()
{
Backend::$events->addEvent('shop:onConfigureOrdersPage', $this, 'add_orders_filter');
}
public function add_orders_filter($controller)
{
$controller->filter_filters['billing_state'] = array(
'name'=>'Billing state',
'class_name'=>'Shop_BillingStateFilter',
'prompt'=>'Please choose billing states you want to include to the list. Orders with other billing states will be hidden.',
'added_list_title'=>'Added Billing States'
);
}
Next: shop:onGetProductPriceNoTax event
Previous: shop:onGetManufacturerFieldOptions event
Return to Handling LemonStand events

