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

Triggered by Shop_Customer
Author LemonStand eCommerce Inc.

Event handler signature

public void event_onCustomerCreated(Shop_Customer $customer)
$customer Shop_Customer specifies the customer object.
Triggered after a new customer is created. Usage example:
public function subscribeEvents()
{
  Backend::$events->addEvent('shop:onCustomerCreated', $this, 'process_new_customer');
}

public function process_new_customer($customer)
{
  if ($customer->first_name == 'John')
  {
    // Do something
  }
}