Hi, I’m trying to get ticket prices as per this post.
However the tickets() function is not actually setup. There’s no direct relationship between events and tickets only datetimes and tickets.
Here’s the error:
Uncaught exception 'EE_Error' with message 'Cannot get Ticket related to EE_Event. There is no model relation of that type. There is, however, Registration, Datetime, Question_Group, Venue, Term_Taxonomy, Promotion_Object, Message_Template_Group, Extra_Meta...'
Any particular reason why both my posts on this forum are being ignored? I’ve tried to be pretty specific about the issues. Most posts before and after have been responded to.
Right, that returns the EE_Ticket object but as I said all of the values are protected or private. Relevant values:
`object(EE_Ticket)#2277 (30) {
…
[“_props_n_values_provided_in_constructor”:”EE_Base_Class”:private]=>array(18) {
…
[“TKT_price”]=>string(6) “20.000”
…
}
…
}
Wow that’s really helpful I’ve been looking through the docs on this site but I didn’t come across any of that. Probably answers my other question too.
Thanks.
Viewing 6 reply threads
The support post ‘EE_Event->tickets() not setup’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.