Description
The “tcp_shopping_cart_item_created” action is launched when an item is added to the shopping cart.
Example
<?php function my_tcp_shopping_cart_item_created( $item ) { $item->addAttribute( 'color', $_REQUEST['color'] ); } add_action( 'tcp_shopping_cart_item_created', 'my_tcp_shopping_cart_item_created' ); ?>
Change Log
Since 1.1.8