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

Triggered by Shop_CartItem
Author LemonStand eCommerce Inc.

Event handler signature

public float event_onGetCartItemPrice(Shop_CartItem $item)
$item Shop_CartItem specifies the cart item object.
{return} float returns the updated cart item price.
Allows to override a price of an item in the shopping cart. The overridden price will be correctly processed by the discount and tax engines. Usage example:
public function subscribeEvents()
{
  Backend::$events->addEvent('shop:onGetCartItemPrice', $this, 'get_cart_price');
}

public function get_cart_price($cart_item)
{
  if ($cart_item->product->sku == '26268880')
    return 10;
}