cart_add

Triggered on adding of a new item to the shopping cart.

Shop-Script

Input (passed by reference)

$item array Added product’s data.
$item['services'] array Services selected for a product.
… your plugin code …

Output

Shop-Script

Plugin code example

PHP

public function cartAdd($item)
{
    waLog::dump(item, 'shop/myplugin/cart-add.log');
}