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

Triggered by Shop_Product
Author LemonStand eCommerce Inc.

Event handler signature

public array event_onGetProductSearchSortColumns()
{return} array returns a list of column names.
Allows to add new sorting columns to the find_products method. The handler should return an array of column names of the shop_products table, including custom fields. Example:
public function subscribeEvents()
{
  Backend::$events->addEvent('shop:onGetProductSearchSortColumns', $this, 'get_search_sorting_columns');
}

public function get_search_sorting_columns()
{
  return array('x_newfield');
}
Note that the columns should be defined in the shop_products table.