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

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

Event handler signature

public void event_onAfterCsvProductUpdated(array $fields, int $id, array $csv_row)
$fields array specifies a list if imported product fields.
$id int specifies the 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 an existing product record has been updated 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:onAfterCsvProductUpdated', $this, 'csv_product_updated');
}

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