customers_merge
Triggered on contacts merging in other apps; e.g., CRM.
Shop-Script
Input (passed by reference)
$params['id'] int Main contact’s ID.
$params['contacts'] array IDs of secondary contacts merged with the main contact.
$params['contacts'] array IDs of secondary contacts merged with the main contact.
… your plugin code …
Output
Shop-Script
Plugin code example
PHP
public function customersMerge($params)
{
$main_contact_id = $params['id'];
$secondary_contact_ids = $params['contacts'];
shopMyPlugin::updateContactIds($main_contact_id, $secondary_contact_ids);
}









