Have been struggling with this for 3 days and solved it myself... I used ajax to determine which radio was selected and trigger a change on the radios for the shipping method, then used $('body').trigger('update_checkout'); on the ajax complete to update the order
$('input[type=radio][name=billing_deliverypickup]').change(function () {
billing_district = this.value;
if (this.value == 'Delivery') {
$( "#shipping_method_0_distance_rate_shipping" ).trigger( "click" );
}
else if (this.value == 'Pickup') {
$( "#shipping_method_0_local_pickup3" ).trigger( "click" );
}
var data = {
district: billing_district
};
$.ajax({
url: 'http://pixelshowcase.co.za/kegtails/wp-content/themes/kegtails/update.php',
type: 'POST',
data: data,
beforeSend: function() {
$(".deltype").html(billing_district);
},
complete: function(data) {
$('body').trigger('update_checkout');
}
});
return false;
});
Hope this helps someone one day who runs into the same problem