From ce66f9b4ae9c248acfc234aa8533f8ff730f3362 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Tue, 23 Apr 2024 15:12:00 +1000 Subject: [PATCH] Verify the order before checking for error flags --- public_html/wp-content/plugins/camptix/camptix.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public_html/wp-content/plugins/camptix/camptix.php b/public_html/wp-content/plugins/camptix/camptix.php index 290c3c118a..1d37d6128f 100644 --- a/public_html/wp-content/plugins/camptix/camptix.php +++ b/public_html/wp-content/plugins/camptix/camptix.php @@ -7172,13 +7172,13 @@ function form_checkout() { if ( ! is_email( $receipt_email ) ) $this->error_flags['no_receipt_email'] = true; + $this->verify_order( $this->order ); + // If there's at least one error, don't proceed with checkout. if ( $this->error_flags ) { return $this->form_attendee_info(); } - $this->verify_order( $this->order ); - $reservation_quantity = 0; if ( isset( $this->reservation ) && $this->reservation ) $reservation_quantity = $this->reservation['quantity'];