add_action("wp_footer", function () {
	?>
<script>
	jQuery( 'form.checkout' ).on("checkout_place_order", function () {
		if(jQuery(".woocommerce-checkout").find(".shipping_method:checked").val() == 'free_shipping:6'){
			return confirm("Just checking you want to collect your food. If so click OK. If not click cancel and enter your address again");
		} else {
			return true;
		}
	});
</script>
<?php
});