frontend_order_cart_add

Triggered upon enabling a service for a product on the in-cart checkout page.

Shop-Script

Input (passed by reference)

$params array Parameters.
$params['new_item'] array Added service’s data.
… your plugin code …

Output

Shop-Script

Plugin code example

PHP

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