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

Triggered by Shop_Cart
Author LemonStand eCommerce Inc.

Event handler signature

public void event_onAfterRemoveFromCart(string $cart_name, string $key)
$cart_name string specifies the cart name.
$key string specifies the cart item key.
Triggered after an item is removed from the shopping cart. Usage example:
public function subscribeEvents()
{
  Backend::$events->addEvent('shop:onAfterRemoveFromCart', $this, 'after_remove');
}

public function after_remove($cart_name, $key)
{
  $item = Shop_Cart::find_item($key, $cart_name);
  if ($item)
    traceLog('Removed '.$item->product->name);
}