//Hide country
add_action("wp_head", function() {
	echo "<style>.force-hide {display: none !important;} #billing_country_field {display: none !important;}</style>";
});

add_action("init", function () {
	if(isset($_GET['wc-ajax']) && $_GET['wc-ajax'] == "checkout" && isset($_POST['shipping_method']) && is_array($_POST['shipping_method']) && $_POST['shipping_method'][0] == "free_shipping:6"){
		$_POST['billing_postcode'] = 'BT47 6BE';
		$_POST['billing_address_1'] = 'Collection';
	}
});

add_action('woocommerce_new_order', function ($order_id) {
	if(get_post_meta($order_id, '_billing_address_1', true) == "Collection"){
    	delete_post_meta($order_id, '_billing_postcode');
		delete_post_meta($order_id, '_shipping_postcode');
	}
}, 10, 1);