Posted: April 20, 2017 at 5:11 am
|
Hi, How do I get none bought tickets returned to the available tickets menu immediately? Thanks. |
Hi there, Those tickets will be reserved for the duration of the user’s session and then released back for sale, but default the user’s session last 1 hour.
How do you define immediately? How do we know if a user has abandoned a registration to release the ticket back? You can reduce the lifespan of the session so those tickets are released sooner however note that if the user takes longer than the session to provide their details and pay the registration will be lost and thewy will need to restart from the beginning again. |
|
|
Hi Tony, |
Not currently, you also run the risk of multiple users purchasing tickets at the same time and overbooking.
I’d say 15 mins would be the shortest lifespan I would use but it really does depend on how much information your capturing on the registration form, more questions = more time needed to answer. To change the session lifespan you can use a function like this: https://gist.github.com/Pebblo/b6e20b03c57efe693bd86ebcf1b00ce9 That sets the lifespan to 15mins and you would place the function within a Custom Functions Plugin on your site. |
|
|
That’s great ,thanks. I understand your points fully so I feel that for now 30 mins. would be best. Can i use 30 mins. still using the link you gave? Thanks. |
Sure, it’s the same function just change this line:
to
|
|
|
I will try it out and if all goes well I will set this topic as resolved. Thank you! |
You’re most welcome. Please do let me know if you run into any problems. |
|
The support post ‘Ticket registration issue.’ 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.