Home › Forums › Welcome! › Pre-Sales Questions › Missing function in event tickets plus
- This topic has 4 replies, 1 voice, and was last updated 10 years, 3 months ago by
George.
-
AuthorPosts
-
January 1, 2016 at 12:04 pm #1048876
Christopher Johansson
GuestHi,
I’m configuring a site for a client and found that in event tickets plus you are missing a function. I’m using it with woocommerce but it exists for EDD so I supposed it was missed. Now when it’s created 1000 different tickets it’s a problem if the don’t show up in correct category. Preferably it should be possible to add tickets to different categories when they are created. Will you add this for future updates? Otherwise I need to update
wp_set_object_terms( $ticket->ID, ‘Ticket’, ‘product_cat’, true ); this comes from class-wootickets and is missing in main but when added it works as it should.
January 1, 2016 at 12:29 pm #1048879George
ParticipantHi Christopher,
Thanks for reaching out. I’m not quite certain which spot you are referring to in our code – can you label the specific file name and line number where a call is made to a missing function? Are you getting errors of any kind?
Or are you saying something else here, like for example that you think there should be another function call somewhere in our code?
Apologies for any misunderstanding on my part here! I just want to make sure I understand your post and understand exactly where in our code you are referring to.
Thank you!
GeorgeJanuary 1, 2016 at 1:59 pm #1048881Christopher Johansson
GuestHi,
Now I’m running latest event tickets plus and discovered that tickets created is not put in any product categories as before they where categorized as “Ticket”. To fix this I went in and looked in to class-wootickets.php, the version I ran before was Wootickets 3.4, and on row 363 I found:
wp_set_object_terms( $ticket->ID, 'Ticket', 'product_cat', true );I think this is a missing function in the latest “Wootickets”, aka event tickets plus. When I searched for it I found it in “event-tickets-plus -> src -> Tribe -> Commerce -> EDD -> Main.php” on row 437.
Then when I added
wp_set_object_terms( $ticket->ID, 'Ticket', 'product_cat', true );to row 511 in “event-tickets-plus -> src -> Tribe -> Commerce -> WooCommerce -> Main.php” it worked as before. My question from beginning were if it suppose to be like that or it was just missed?
Also, a feature that would be really awesome if possible would be to arrange the tickets in different product categories when they are created. As posts or products are sorted in different categories.
Thanks for quick reply! 🙂January 1, 2016 at 2:01 pm #1048883Christopher Johansson
GuestBtw, on line 437 it’s the following code:
wp_set_object_terms( $ticket->ID, 'Ticket', 'download_category', true );January 4, 2016 at 5:04 pm #1050117George
ParticipantThanks for sharing this information Christopher – I will investigate these claims and make a development ticket if this is indeed something that is supposed to be included in our plugins now. I admit that I’m not sure if it’s supposed to be, since we’ve totally rebuilt our ticketing system as we moved from “WooCommerce Tickets” into the new “Event Tickets” and “Event Tickets Plus” plugin pair.
For now, I will close up this thread – but stay tuned to plugin releases and check the “changelog” of the update to see if anything like this is included in a release. You can also follow update news at http://theeventscalendar.com/blog
Thank you!
George -
AuthorPosts
- The topic ‘Missing function in event tickets plus’ is closed to new replies.
