Hi there,
I add this code
//product attributes
if ($num > 17){
$prod_catt = array();
$catt_count = 0;
for ($i = 17; $i < $num; $i++){
$custom_field = explode(':', $data[$i]);
$custom_values = esc_html(stripslashes($custom_field[1]));
// Text based, separate by pipe
$custom_values = explode('|', $custom_values);
$custom_values = array_map('trim', $custom_values);
$custom_values = implode('|', $custom_values);
$prod_catt[ sanitize_title( $custom_field[0] ) ] = array(
'name' => htmlspecialchars(stripslashes($custom_field[0])),
'value' => $custom_values,
'position' => $catt_count,
'is_visible' => 1,
'is_variation' => 0,
'is_taxonomy' => 0
);
$catt_count++;
}
$prod_catt = maybe_serialize($prod_catt);
update_post_meta( $post_id, '_product_attributes', $prod_catt);
}
into function woocsv_import_products_from_csv before end of foreach( $content as $data ) {