Posted: May 18, 2020 at 3:40 pm
I have created a custom function for my ticket selector on this page. It clarifies how many tickets are left for an event and whether it is sold out. If an event is sold out it also includes a link to the events list page so the user can see other events coming up that they may like to book for. Instead of linking to the events list page, I would like the link to point to the next event (i.e. ordered by date) in the same event category. So, the text would say “Details of our next seminar can be found HERE”, with the link pointing to a single event page. Is it possible to adapt my function to achieve this and, if so, what would the additional function/code look like?
Secondly, I would like to add some text to the form if an event is sold out and there is a waiting list (in addition to the wait list button). Is there a way of checking to see if there is a waiting list with places still available in the function?
In short, most likely yes but I haven’t seen your code so I can’t say for sure.
You can use our models to do what you need and we have documentation on using those here:
The EE4 Upcoming events widget has a slightly similar example of what you need to do HERE only you’ll be basing your code on DTT_EVT_start and can use
Yes, but we don’t have a public method you can just run to check.
Take a look at how the