Posted: August 23, 2018 at 10:04 pm
Hey EE4 Support, I’ve gone through countless posts for the solution of “Sold Out Not Sold Out Tickets” and while there are plenty of EE4 posts that say the problem has been fixed, it’s still occurring. I do have the last update, so it may not be up to date completely, but we are on 4.9.65.p which is the last update before the one just released a few weeks ago. The conclusion: Having to do this is of great annoyance to my client. So I’m trying to simply automate it, which I can assume should be done and is already being done with a cron job? wp-cron is in operation. I’ve even added a secondary code to the functions.php file. https://gist.github.com/joshfeck/19cf49a2a30e939cca6d0a7014f7c183 I would think these solutions would work but I’m not having any success. The button works the best and seems to be the ultimate solution. Yet, every few more ticket sales for certain possibly more popular events, we find the same issue: Sold out is what it says on the calendar, but when you actually click into the event, the form to register and pay is available. Since this is an ongoing issue and seems to technically be a temporary fix, is there a way via the database or some code that I can automate the click of that button every hour? Or is there any more permanent solution I can implement? EE4 is a great tool but it certainly does not come without its annoyances. And as the dev.. I’m trying the best I can to keep EE4 as her solution, because it’s been a blessing for me as well, but when she has a sold out class of 25 people yet the spots open is 50 people… she’s losing money and EE4 is not keeping her happy, so please help me to help you! 🙂 |
|
Hi, It sounds like wp_cron might be disabled on your site. Especially if this additional cron event scheduler isn’t doing anything. Sometimes, depending on the server, it can help to activate the WordPress “Alternative Cron”, which can be switched on by following this guide: https://codex.wordpress.org/Editing_wp-config.php#Alternative_Cron |
|
Hey Josh, Should it automatically clear out the reserved tickets? |
|
They absolutely should automatically clear. There are a series of methods that clear out the reserved tickets when it’s an abandoned cart, but they do require there to be a way to schedule the task with wp_cron or an equivalent alternative. You can review those methods in the source if you’d like: |
|
Hey Josh, You were definitely right. I think the system wasn’t registering the cron. After a restart of the machine, it seems to be working fine now. So far so good. Thanks for the link. Definitely helps to get an idea of whats going on. You can mark this as resolved. If I have any further issues, I will open a new ticket. |
|
The support post ‘Sold Out Not Sold Out Same Ol' Song & Dance’ 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.