Support

Home Forums Event Espresso Premium Keep pending from counting as an attendee

Keep pending from counting as an attendee

Posted: November 30, 2012 at 10:02 am

Viewing 4 reply threads


Noah Purves-Smith

November 30, 2012 at 10:02 am

Is there an easy way for me to change Event Espresso so that it doesn’t mark “pending” orders as an attendee to an event? We expect a number of people will opt to send an invoice, but a few won’t actually do it. So I don’t want to reserve a spot for them.

Any help?


Noah Purves-Smith

November 30, 2012 at 10:12 am

Sorry to have jumped the gun! I just read a post that suggested changing default status to incomplete instead of pending. Works for me (I think). πŸ™‚


Noah Purves-Smith

November 30, 2012 at 1:29 pm

Jumped the gun again. πŸ™

Apparently downloading the invoice sets payment status to pending and counts them as attending (taking a place from someone who might want to pay online).

Any way to fix this? Maybe even remove the pending status completely?


Josh

  • Support Staff

November 30, 2012 at 5:55 pm

I would suggest modifying the invoice template code so that it doesn’t run the code that updates the payment status when the invoice is downloaded.

You can find it in the gateways/invoice/template.php starting on line 64 of the current version of Event Espresso. If you comment it out like this, the code will not run:

/*
if ($payment_status != 'Completed') {
    $payment_status = 'Pending';
    $txn_type = 'INV';
    $payment_date = date('Y-m-d-H:i:s');

//Added by Imon
    if (count($registration_ids) > 0 && $admin == false) {
        foreach ($registration_ids as $reg_id) {
            $sql = "UPDATE " . EVENTS_ATTENDEE_TABLE . " SET payment_status = '" . $payment_status . "', txn_type = '" . $txn_type . "', payment_date ='" . $payment_date . "'  WHERE registration_id ='" . $reg_id['registration_id'] . "'";
            $wpdb->query($sql);
        }
    }
}
*/


Noah Purves-Smith

December 3, 2012 at 10:11 am

Thanks Josh:

That’s exactly what I ended up doing. Thanks! πŸ™‚

Viewing 4 reply threads

The support post ‘Keep pending from counting as an attendee’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso