product_delete

Triggered on product deletion.

Shop-Script

Input (passed by reference)

$params array Parameters.
$params['ids'] array Array of IDs of products being deleted.
… your plugin code …

Output

Shop-Script

Plugin code example

PHP

public function productDelete(&$params)
{
    shopMyPluginHelper::filterDeletedProducts($params);
}