products_add_sets.after
Triggered upon adding a group of products to sets.
Shop-Script
Input (passed by reference)
$params array Parameters.
$params['set_ids'] array IDs of sets to which product were added.
$params['new_set_id'] int ID of a new set, to which products were added, if the new set was created via the products-to-sets-adding dialog.
$params['hash'] string Hash in the URL of a page in “Products” section if all products on the current page were added to selected sets.
$params['products_id'] array IDs of products individually added to selected sets.
$params['set_ids'] array IDs of sets to which product were added.
$params['new_set_id'] int ID of a new set, to which products were added, if the new set was created via the products-to-sets-adding dialog.
$params['hash'] string Hash in the URL of a page in “Products” section if all products on the current page were added to selected sets.
$params['products_id'] array IDs of products individually added to selected sets.
… your plugin code …
Output
Shop-Script
Plugin code example
PHP
public function productsAddSetsAfter($params) { waLog::dump($params, 'shop/plugins/' . $this->id . '/product-add-sets-after.log'); }