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

Triggered by /modules/shop/controllers/shop_orders.php
Author LemonStand eCommerce Inc.

Event handler signature

public void event_onConfigureOrdersPage(Shop_Orders $controller)
$controller Shop_Orders specifies the controller object.
Allows to configure the Administration Area order pages before they are displayed. In the event handler you can update the back-end controller properties, for example add a filter to the orders list.
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'
  );
}