Support

Home Forums Event Espresso Premium Add Event Tickets and Venues from Front End

Add Event Tickets and Venues from Front End

Posted: March 8, 2019 at 1:41 pm

Viewing 3 reply threads


Whiskydo

March 8, 2019 at 1:41 pm

I’m building a custom front end form to add events. I managed the event add and the ACF fields added to it but I’m struggling on how to add tickets and venues. Which is the DB collection in which they are stored? Do you have some hints to take the correct direction?


Tony

  • Support Staff

March 13, 2019 at 7:30 am

Hi there,

Front end events is not something we support so we don’t have any examples of doing this at this time.

Which is the DB collection in which they are stored?

There are multiple relationships with datetimes, tickets and so on, adding those directly to the database is going to require you have a full understanding of all of those relationships and update them accordingly.

I recommend you use the EE model system to create your tickets/datetimes:

https://github.com/eventespresso/event-espresso-core/blob/master/docs/G–Model-System/using-ee4-model-objects.md

You will still need an understanding of the above but it helps.

The only hints I can give you is to view how EE itself creates/updates its datetimes/tickets using the models and then follow that. For example look at how datetimes are updated/created HERE and tickets HERE.

Is that what you are looking for?


Whiskydo

March 13, 2019 at 3:34 pm

Thanks a lot Tony!
This is exactly what I was searching for.
I already approached it looking directly at the DB but some code examples are sure better!
I will dive into your suggestions to find the correct solution for my use case.

thanks again!


Tony

  • Support Staff

March 14, 2019 at 3:58 am

You’re most welcome 🙂

Viewing 3 reply threads

The support post ‘Add Event Tickets and Venues from Front End’ 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