wpsc_remove_item

Located in: cart.class.php

Functions that call this hook: wpsc_cart::remove_item()

Arguments Accepted: $key, $wpsc_cart

Version Introduced: 3.8.9

Description: This action is triggered when an item is removed from the cart.

Code in context:

[php firstline=”999″ highlight=”1013″]

if(isset($this->cart_items[$key])) {

$cart_item =& $this->cart_items[$key];

$cart_item->update_item(0);

unset($this->cart_items[$key]);

$this->cart_items = array_values($this->cart_items);

$this->cart_item_count = count($this->cart_items);

$this->current_cart_item = -1;

do_action( ‘wpsc_remove_item’, $key, $this );

$this->clear_cache();

return true;

} else {

$this->clear_cache();

return false;

}

[/php]