I have a function called wc_csv_export_modify_row_data inside of functions.php. Within this function I check what the chosen shipping method was. I used this code:
$chosen_methods = WC()->session->get( 'chosen_shipping_methods' );
$chosen_shipping = $chosen_methods[0];
if ($chosen_shipping == 'local_delivery') { // do something
} else { // do something else
}
Unfortunately, maybe with the update to version 2.5, this doesn't work anymore. The following error message appears:
Fatal error: Call to a member function get() on a non-object in path/functions.php on line 743