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

Triggered by /modules/shop/models/shop_customercsvimportmodel.php
Author LemonStand eCommerce Inc.

Event handler signature

public void event_onBeforeCsvCustomerCreated(array $fields, int $id)
$fields array specifies a list if imported customer fields.
$id int specifies the new customer identifier.
Triggered before a new customer record is imported from a CSV file. The event handler should accept a single parameter - the array of imported fields.
public function subscribeEvents()
{
  Backend::$events->addEvent('shop:onBeforeCsvCustomerCreated', $this, 'csv_before_customer_created');
}

public function csv_before_customer_created($fields)
{
  // Do something
}