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

Triggered by Shop_CartItem
Author LemonStand eCommerce Inc.

Event handler signature

public float event_onUpdateCartItemPrice(Shop_CartItem $item, float $price)
$item Shop_CartItem specifies the cart item object.
$price float the cart item price.
{return} float returns the updated cart item price.
Allows to update a default shopping cart item price, or price returned by the shop:onGetCartItemPrice event. This event is triggered after the event. The updated price will be correctly processed by the discount and tax engines. Usage example:
public function subscribeEvents()
{
  Backend::$events->addEvent('shop:onUpdateCartItemPrice', $this, 'update_cart_price');
}

public function update_cart_price($cart_item, $price)
{
  if ($price > 1000)
    return 999;
}