Thank you for your time. on the cart I've managed to change it using:
add_filter( 'woocommerce_cart_item_name', 'custom_item_name', 10, 3 );
function custom_item_name( $item_name, $cart_item, $cart_item_key ){
$new_item_name = str_replace(',', ' |', $item_name);
return $new_item_name;
}
source : https://stackoverflow.com/questions/44909658/replace-a-certain-character-in-woocommerce-cart-item-variations-title-by-a-pipe
then how to change separator from , to - in order detail page ?