diff --git a/assets/js/admin.js b/assets/js/admin.js index 3fa9c06..de3b3b7 100644 --- a/assets/js/admin.js +++ b/assets/js/admin.js @@ -12,6 +12,7 @@ let errorMessage = $( '.error-message' ); let bookingForm = $( '#ste-booking-metabox-form' ); let bookingMetaBoxMessage = $( '#ste-booking-metabox-message' ); + parcelSubmitButton.on("click", function (e) { e.preventDefault(); parcelSubmitButton.prop( 'disabled', true ); diff --git a/includes/Admin/STE_Metabox.php b/includes/Admin/STE_Metabox.php index 7311830..88a4d81 100644 --- a/includes/Admin/STE_Metabox.php +++ b/includes/Admin/STE_Metabox.php @@ -81,7 +81,7 @@ public function metabox_view_handler() { * * @return void */ - public function set_shipping_info( $order ) { + public function set_shipping_info( \WC_Order $order ) { $this->shipping_info['recipient_name'] = '' !== trim( $order->get_formatted_shipping_full_name() ) ? $order->get_formatted_shipping_full_name() : $order->get_formatted_billing_full_name(); $this->shipping_info['recipient_mobile'] = $order->get_billing_phone(); $this->shipping_info['recipient_city'] = '' !== trim( $order->get_shipping_city() ) ? $order->get_shipping_city() : $order->get_billing_city(); diff --git a/uninstall.php b/uninstall.php new file mode 100644 index 0000000..f602b34 --- /dev/null +++ b/uninstall.php @@ -0,0 +1,15 @@ +