Hi @kimruddock,
We can help with that.
Firstly, copy below code snippet to your active theme’s function.php
add_filter('woocommerce_product_importer_parsed_data', 'woocommerce_product_importer_parsed_data',10,2);
function woocommerce_product_importer_parsed_data($data,$d_data) {
foreach ($data['meta_data'] as $mkey => $mvalue) {
if ($mvalue['key'] == '_crp_related_ids') {
$custom_meta = explode(",", $mvalue['value']);
$en_value = json_encode($custom_meta, JSON_NUMERIC_CHECK);
$custom_meta_data = json_decode($en_value, true);
$data['meta_data'][$mkey]['value'] = $custom_meta_data;
}
}
return $data;
}
Then use the column “Meta:_crp_related_ids” in import CSV with the IDs comma separated.
Eg:
Meta:_crp_related_ids
1001, 1002