Support

Home Forums Event Espresso Premium How long will items be hold in cart?

How long will items be hold in cart?

Posted: March 7, 2017 at 1:35 pm


faeger

March 7, 2017 at 1:35 pm

Hi all

I recently asked about the issue, that items are being hold in the cart, even when a registration has not been completed.

Josh from EE gave me the following patch: https://github.com/eventespresso/event-espresso-core/archive/BUG-10537-cart-ticket-reservations.zip

This worked!

Now my follow-up-question is: How long are items being hold in cart and can this value be changed to max. five minutes?

Thanks
Philip


Josh

  • Support Staff

March 7, 2017 at 1:40 pm

It’s 60 minutes. It can be changed to 5 minutes, but if you change it to 5 minutes, anyone that takes longer than 5 minutes to fill out the registration form and fill out the credit card payment form will get an error and will not be able to complete their registration. So we don’t recommend changing it to 5 minutes.


faeger

March 7, 2017 at 2:19 pm

Hi Josh

Thanks for your answer and your statement.

Can you point me where to change it to, let’s say, 10 minutes?

Thanks
Philip


Josh

  • Support Staff

March 7, 2017 at 2:23 pm

I can give you the code, and please consider not adding it because this will cause some problems. Here’s the code you add to a site specific plugin:

add_filter( 'FHEE__EE_Session__construct___lifespan', 'ee_change_reg_time_limit' );
function ee_change_reg_time_limit() {
return 10 * MINUTE_IN_SECONDS;
}


faeger

March 7, 2017 at 2:50 pm

Thanks for the code, which I just implemented.

What kind of problems other than the one you already mentioned could occur?

Thanks
Philip


Josh

  • Support Staff

March 7, 2017 at 2:51 pm

People not being to register, then they’ll try again and won’t be able to register. Then ultimately someone is going to blame Event Espresso because people can’t register.


faeger

March 7, 2017 at 3:05 pm

Okay – but still this would trigger a front-end error message for the user to see? Or would the registration just disappear somewhere without any trace whatsoever?


Josh

  • Support Staff

March 7, 2017 at 3:58 pm

They may see an error message, and if they’re patient, they’ll probably try to register again, then you’ll end up with duplicate registrations from when they tried to registration again.

The support post ‘How long will items be hold in cart?’ 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