I dont know about datakicks module. Probably he will respond here too.
If you really wanna add this fastly you could use the following script. But please make a backup before.
$ids_add_accessory = [3862, 3861];
$query = new DbQuery();
$query->select('id_product');
$query->from('product');
$ids_product = array_column(Db::getInstance()->ExecuteS($query), 'id_product');
$inserts = array();
foreach ($ids_product as $id_product) {
foreach ($ids_add_accessory as $id_add_accessory) {
if ($id_product!=$id_add_accessory) {
$inserts[] = array(
'id_product_1' => $id_product,
'id_product_2' => $id_add_accessory,
);
}
}
}
Db::getInstance()->insert('accessory', $inserts, false, true, 2);
You basically change the values in $ids_add_accessory. If you want to just add this tags to some products (instead of all), you could also work with $ids_product manually.
Example: $ids_add_accessory = [1,2,3] and $ids_product = [100,101]
This means that products with id 100 and 101 get the accessoires 1, 2 and 3.