Offline payment : Confirmation mail sent to Incomplete bookings

WordPress Event Management, Calendars & Registration Forums Report A Bug Offline payment : Confirmation mail sent to Incomplete bookings

This topic contains 1 reply, has 2 voices, and was last updated by  Stephen Harris 5 days, 5 hours ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #37131


    I am using the offline payment option for the booking.

    Since the introduction of the payment gateway, I get in rare cases some bookings flagged with Incomplete status but where the booking confirmation mail is sent to both the user and the admin. These mails are normally sent only to the Pending booking

    Since the Incomplete bookings don’t decrease the places count, this leads to overbooking.

    I could not clearly reproduce the behaviour.

    Thanks in advance for your advice.

    All the best!



    Hi Jef,

    Which emails are sent out? Booking confirmation emails are (should) only sent out when the booking is transitioned to the confirmed status (they are hooked onto transition_post_status). (Which might happen immediately if the booking is free).

    In the settings, under “Notify me when” do you have “A new booking is made” checked? If so, that will be sent as soon as the booking is created, but before a payment gateway is selected (and only to the admin).

    If it is the confirmation emails, add the following to your wp-config.php

    define( 'EVENTORGANISER_DEBUG', 'debug');

    and then add this snippet to record booking transitions:

    add_action('eventorganiser_transition_booking_status', function($new_status, $old_status, $booking){
            $container = eo_pro_get_container();
            $logger = $container[\EventOrganiserPro\Logger\AbstractLogger::class];
            $logger->debug("Booking {$booking->ID} $old_status --> $new_status");
    }, 10, 3);

    That will log any booking status transition, if the issue should recur that will provide some information as to what statuses the booking transitions to/from and when.

    Stephen Harris
Viewing 2 posts - 1 through 2 (of 2 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.