Update Custom Field value woocommerce
$product = wc_get_product( $product_id ); //echo $csvpro.''; exit; $product->update_meta_data( 'ean',sanitize_text_field( $csvpro )); $product->update_meta_data( 'grossweight', sanitize_text_field( $progrossweight ) ); $product->update_meta_data( 'expectedinweek', sanitize_text_field( $proexpectedinweek ) ); $product->update_meta_data( 'demostock', sanitize_text_field( $prodemostock ) );…