Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify the order before checking for error flags #1295

Open
wants to merge 1 commit into
base: production
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading