Skip to content

Commit

Permalink
Verify the order before checking for error flags
Browse files Browse the repository at this point in the history
  • Loading branch information
dd32 authored Apr 23, 2024
1 parent 32b4a21 commit ce66f9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public_html/wp-content/plugins/camptix/camptix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down

0 comments on commit ce66f9b

Please sign in to comment.