Support

Home Forums Event Espresso Premium Pending Payment registration counted for a spot

Pending Payment registration counted for a spot

Posted: May 23, 2017 at 11:00 am

Viewing 7 reply threads


carmelklavier

May 23, 2017 at 11:00 am

Hello Experts,
I have a weird issue. I am running EE 4.9.38. When we having an abandoned registration, this registration shows as “Pending Payment” and it counted toward the total number of seats. We are running registration for a piano lessons, and it is only one spot (ticket) per time slot, and multiple tickets (time slots) per event, so it very easy to see if is it still open. So if we have an abandoned registration the class show as a Sold Out instead of having open spot. Any thoughts?

Thank you in advance,
David


Josh

  • Support Staff

May 23, 2017 at 11:04 am

Hi David,

The Pending payment registration should count for up to 1 hour then their reservation should automatically get released back into the inventory.

If that does not happen, then that may be an indication that your server has the wp_cron() function disabled. In which case, you can go to Event Espresso > Maintenance > Reset and you click on the button that says: Reset Ticket and Datetime Reserved Counts.


carmelklavier

May 23, 2017 at 11:11 am

Hi Josh,
Thank you for such a quick response. I just ran a test about 40 min ago and will know if the reg will clear up after 1 hour.
This might be not the right place to ask this question but i will give it a try: In case wp_cron is disabled how can i re-enable it again. If you could provide link or perhaps a short direction.

Thank you in advance,
David


Josh

  • Support Staff

May 23, 2017 at 11:15 am

Hi David,

You can contact your host and ask them if they’ve disabled wp_cron. If they say they’ve disabled it, then they may have set up an alternative.

You can also install this plugin to check to see if cron events are getting scheduled and run:

https://wordpress.org/plugins/wp-crontrol/


carmelklavier

May 23, 2017 at 11:18 am

Thank you. One more question, is it possible to shorten 1 hour timeout?


Josh

  • Support Staff

May 23, 2017 at 11:41 am

Yes it’s possible. You add the following to site specific plugin:

add_filter( 'FHEE__EE_Session__construct___lifespan', 'ee_change_reg_time_limit' );

function ee_change_reg_time_limit() {
    return 45 * MINUTE_IN_SECONDS;
}

Please note that some of the users of your website may not be able to complete the registration form in the allowed time, and the form isn’t complete in time, they’ll get an error message informing them their registration session time has expired.


Tony

  • Support Staff

May 23, 2017 at 11:42 am

Yes it is.

You can setup a Custom Functions Plugin and add a similar similar to this one:

https://gist.github.com/Pebblo/ee5b686c56fef27dbccb08602821e582

Note that snippet sets the lifespan to 2 hours (120 minutes), you can change the value within your function. We don’t recommend going any lower than say 15 mins otherwise you may start to cause problems for your registrations.

The session lifespan is the liftetime of the session from when the user selects tickets right through to the end when they pay/finalize. If the session expired before they finish they will need to restart the registration again.


carmelklavier

May 23, 2017 at 11:47 am

Thank you so much for your responses.

David

Viewing 7 reply threads

The support post ‘Pending Payment registration counted for a spot’ 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