Home › Forums › Ticket Products › Event Tickets Plus › List upcoming ticket dates
- This topic has 12 replies, 4 voices, and was last updated 9 years, 3 months ago by
Cliff.
-
AuthorPosts
-
December 12, 2016 at 1:01 am #1204614
Robin
ParticipantI am using Event Tickets Plus for a theatre site and I am trying to list upcoming show dates on the front page.
Is there a way to draw those dates from the Event Tickets and then output them in a list with a link to the single post they relate to? I realise this request might be related to the functionality between Event Tickets and recurring events in Events Calendar, which I have read is not working at the moment, although that is not exactly what I am looking for.Could you point me in the right direction? Any clues appreciated.
December 12, 2016 at 3:04 pm #1204948Cliff
MemberHi, Robin.
As you said, unfortunately, our ticketing plugins do not support PRO’s recurring events functionality. Please do add your vote to that request, though: https://tribe.uservoice.com/forums/195723-feature-ideas/suggestions/3685663-recurring-event-support-for-tickets
If you are wanting that functionality, one workaround idea is to create all your recurring events, break them all from the recurrence series (so they become single/standalone events) and then add tickets to each single/standalone event.
===
To answer your main question, you can only sell tickets from each event’s single event view.
You could request this as a new feature (or maybe search to see if the idea was already posted by someone else) at our plugins’ UserVoice page.
This allows others who are interested in that feature to easily voice their support. We frequently review suggestions there to find out which ones are popular, then we implement as many of them as we can.
If you post it / find it, feel free to link to it from here in case anyone comes across this forum thread in the future.
Let me know if you have any other questions.
December 18, 2016 at 3:14 am #1207475Robin
ParticipantThank you for the answer. I have given my vote and hope for that functionality in the future.
The main question however, as I ment it, was not if it is possible to sell tickets outside the single event, but if tickets (though only their date, name and link) can be called upon via some function in order to output them in a list. The purpose is to have list of upcoming shows. For example “li”[date] Hamlet “/li” etc. for each there is a link to the tickets single event.
This is, as already said, sort of an events list for recurring events, but since this functionality is not in place I am thinking of this workaround.
So part of my question is:
How do I output tickets end_date and name values outside the single event which they are tied to?I hope an answer to this could give me a clue to figure out the rest.
-
This reply was modified 9 years, 3 months ago by
Robin.
December 18, 2016 at 5:17 pm #1207584Cliff
MemberWe cannot provide such in-depth customization help, per our Scope of Support / Terms, but get_all_event_tickets() exists in /wp-content/plugins/event-tickets/src/Tribe/Tickets.php
If there’s a code snippet you’d like me to put some eyes on or something else I can help you with, please update this ticket or create a new ticket if it’s a separate issue.
Thank you very much for your understanding.
If you need some coding help, you may want to ask your developer or reference our documentation and list of known customizers.
January 3, 2017 at 4:08 pm #1212881Robin
ParticipantThank you Cliff for trying to point me in the right direction. I think I have now figured it out how to list all tickets by using the front_end_tickets_form function in WooComerce/Main.php. Now the only question is how to sort the tickets by date instead of quantity? Any suggestion?
January 4, 2017 at 9:58 pm #1213617Cliff
MemberI’m unsure if this is the right thing, but you might want to play with the WP_Query inside the get_tickets_ids method at Line 1879 of /wp-content/plugins/event-tickets-plus/src/Tribe/Commerce/WooCommerce/Main.php — maybe add an order or orderby argument
However, I thought they were ordered according to the order they’re displayed in wp-admin… Are yours not?
FYI: I believe there’s an existing feature request for editing the order the tickets appear in — that the front-end display order would be editable in wp-admin.
Please let me know how things go for you.
January 5, 2017 at 10:53 am #1213924Robin
ParticipantYou are absolutely right about the ordering, it does follow the wp-admin. My mistake!
And thank you again for your help. Editing the wp_query did the trick. Just had to change the meta_key to ‘_ticket_end_date’ and then add orderby ‘meta_value’ and order ‘ASC’. This does not work with the standard query showing tickets tied to a specific event, but it works fine for this custom show-all-tickets feature. In other words, I believe this solves my original question. Again, thank you!Looking forward for that feature where you can change the order in admin view!
January 5, 2017 at 11:26 am #1213950Cliff
MemberThanks for letting me know! I’m glad that worked for you.
Just know that anytime this plugin is updated, your customization will be lost and need to be re-added if you want.
January 5, 2017 at 1:44 pm #1214036Gergana
ParticipantHi,
I can step in with some of my insights and ideas.
I am working on this to make one place for all of my events. And I’ve found a solution of this. It is called “Inser Pages”. Ta daa 😀
It is a wordpress plugin which is very useful for this situation. It can also import custom post types as the events here. You can even import them throught a custom template which I did. If you are interesting I can share more information here.January 6, 2017 at 2:59 pm #1214536Cliff
MemberGergana, thanks for the tip about https://wordpress.org/plugins/insert-pages/
I’ve not used that plugin before and I’m not certain it’d fit for this use case, but Robin and/or others may want to give it a try (third-party, not guaranteed or supported by us)
January 6, 2017 at 3:02 pm #1214541Robin
ParticipantYes thank you for the tip Gergana, I will keep it mind!
January 6, 2017 at 9:07 pm #1214601Cliff
MemberThanks for the update, Robin.
Have a good weekend.
-
This reply was modified 9 years, 3 months ago by
-
AuthorPosts
- The topic ‘List upcoming ticket dates’ is closed to new replies.
