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

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

Event handler signature

public void event_onBeforeCsvCustomerUpdated(array $fields, int $id)
$fields array specifies a list if imported customer fields.
$id int specifies the customer identifier.
Triggered before an existing customer record is updated from a CSV file. The event handler should accept two parameters - the array of imported fields and the customer identifier.
public function subscribeEvents()
{
  Backend::$events->addEvent('shop:onBeforeCsvCustomerUpdated', $this, 'csv_before_customer_updated');
}

public function csv_before_customer_updated($fields, $id)
{
  // Do something
}