cart_add

Triggered on adding 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/plugins/' . $this->id . '/cart-add.log');
}