wpsc_add_item

Located in: cart.class.php

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

Arguments Accepted: $product_id, $parameters, $wpsc_cart

Version Introduced: 3.8.9

Description: This action is triggered when an item is added to cart.

Code in context:

[php firstline=”879″ highlight=”883″]

// if we are still adding the item, add it

if($add_item === true) {

$this->cart_items[] = $new_cart_item;

do_action( ‘wpsc_add_item’, $product_id, $parameters, $this );

}

[/php]