'); valsucees = false; } if(jQuery("#ship-to-different-address-checkbox").prop("checked") == true){ var shipping_first_name = $("#shipping_first_name").val(); var shipping_last_name = $("#shipping_last_name").val(); var shipping_company = $("#shipping_company").val(); var shipping_address_1 = $("#shipping_address_1").val(); var shipping_address_2_field = $("#shipping_address_2_field").val(); var shipping_city = $("#shipping_city").val(); var shipping_state = $("#shipping_state").val(); var shipping_postcode = $("#shipping_postcode").val(); if (shipping_first_name == '' ) { jQuery('.woocommerce-error2').append('