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

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

Event handler signature

public void event_onAfterCsvProductCreated(array $fields, int $id, array $csv_row)
$fields array specifies a list if imported product fields.
$id int specifies the new product identifier.
$csv_row array specifies a list of columns loaded from the CSV file. The column values go in the same order as they are defined in the CSV file.
Triggered after a new product record has been imported from a CSV file. The event handler should accept three parameters - the array of imported fields, the product identifier and the array of column values loaded from the CSV file.
public function subscribeEvents()
{
  Backend::$events->addEvent('shop:onAfterCsvProductCreated', $this, 'csv_product_created');
}

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