I'm trying to set the product type as 'external'. I've managed to add the product_url to the import, however I am struggling with setting the product_type as external. Does anyone know how this can be done?
So far I added
update_post_meta( $post_id, '_product_url', $data );
to line 132. Struggling to figure out how to set the product_type though.