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

Triggered by Backend_ReportsData
Author LemonStand eCommerce Inc.

Event handler signature

public string event_onGetStartReportingDate(string $default_date)
$default_date string specifies the default reporting start date calculated by LemonStand.
{return} string returns the new reporting start date in the following format: yyyy-mm-dd
Allows to override the reporting start date. The event handler should return the new reporting start date as string. The default reporting start date matches the first order date. Example:
public function subscribeEvents()
{
  Backend::$events->addEvent('shop:onGetStartReportingDate', $this, 'get_start_reporting_date');
}

public function get_start_reporting_date($default_date)
{
  return '2009-10-01';
}