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

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

Event handler signature

public mixed event_onOverrideProductCategoryCsvImportData(mixed $value)
$value mixed specifies the Category column value.
{return} mixed returns the updated value or FALSE.
Allows to override a value in the Category column of a products CSV file before the data is imported. The event handler should accept a single parameter - the Category column value. The handler should either return the updated column value or FALSE if the value should not be updated.
public function subscribeEvents()
{
  Backend::$events->addEvent('shop:onOverrideProductCategoryCsvImportData', $this, 'override_csv_product_category');
}

public function override_csv_product_category($value)
{
  return str_replace('^', '|', $value);
}