shopp_rmv_cart_item()

remove a specific item from the cart

shopp_rmv_cart_item ( $item )

@param int $item (required) the numeric index of the item contents array to remove ( 0 indexed )
@return bool true for success, false on failure

Description

remove a specific item from the cart

Example

// get the count of items in the cart
$count = count(shopp_cart_items());

if ( $count )
    // items are 0 indexed
    shopp_rmv_cart_item( $count - 1 );

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar