Support

Home Forums Event Espresso Premium Events Table: Show One Event With All Available Tickets

Events Table: Show One Event With All Available Tickets

Posted: May 16, 2017 at 10:52 am


Learningpoint

May 16, 2017 at 10:52 am

Hello,

I would like to use the Events Table plugin to show one event and for it to list all the available tickets/datetimes. Is this possible, and if show what would be the shortcode?

Thanks!


Josh

  • Support Staff

May 16, 2017 at 1:50 pm

Hi there

[ESPRESSO_EVENTS_TABLE_TEMPLATE show_all_datetimes=true] will show all of the datetimes.

In order to show ticket info that will require a custom template. You can follow this guide to set up a custom template:

https://eventespresso.com/wiki/events-table-view-template-add-on/#customizations

Then you can add the following code to your custom template:

<div class="event-tickets" style="clear: both;">
	<?php espresso_ticket_selector( $post ); ?>
</div>


Learningpoint

May 17, 2017 at 8:36 am

Thanks for the reply Josh! I have created the custom template and I pasted the code into it. I’m not sure if I did it correctly… I just pasted it in at the bottom of the code. Now that I have done that, I have no idea what to do next. Honestly I feel like I have accomplished a lot just being able to do what I just did! Can you please walk me through the next steps?


Josh

  • Support Staff

May 17, 2017 at 1:04 pm

You’ll actually need to put the code I shared with you to the part of the template in the location where you want those tickets to be displayed. You can review an example with the code in context here:

https://gist.github.com/joshfeck/e8fcb3946f56490d1384bfcc449caa9b


Learningpoint

May 17, 2017 at 1:42 pm

Hi Josh,

I’m lost… So the example code you just sent should be added to my template file? Then I just paste the code from your first response into the body of my page?

Can you please list out step by step instructions? I feel like I’m only get bits and pieces of what I’m supposed to do.

Thanks,

Jake


Josh

  • Support Staff

May 17, 2017 at 2:04 pm

Hi Jake,

I’d need specifics about where you intend to display the available tickets to be able to give you a list of step by step instructions.

This may be sufficient though:

1) Create a WordPress page
2) Add this to the page’s content area:
[ESPRESSO_EVENTS_TABLE_TEMPLATE show_all_datetimes=true]
3) Hit the Publish button.


Learningpoint

May 17, 2017 at 2:29 pm

I’ve already done that. Where does any of the instructions from above belong?

I am building out one page per event. On each page there is a “register” tab. I want to display all of the datetimes for the event from which they are accessing the page. Example: I visit Event Page One and click on register. On the register tab I see there are 6 occurrences of the event. I click on register for the datetime of my choosing and continue with the registration process.
I don’t want to see any other events on that page, just the occurrences for that specific event.

You can see where I am trying to do this here: http://learningpoint.jakessigns.com/project/supervisor-boot-camp-1-portland/

Does that make more sense? I feel like we are going around in circles and not really understanding what the other person is trying to get accomplished… I must not be very good at explaining myself.


Josh

  • Support Staff

May 17, 2017 at 2:54 pm

Hi Jake,

I don’t think it really makes sense to use the Events table template to show one event. (It is designed to show a list of many events). How about instead of using the [ESPRESSO_EVENTS_TABLE_TEMPLATE] shortcode, you use the
[ESPRESSO_TICKET_SELECTOR event_id= 25951] shortcode on that page instead?

The support post ‘Events Table: Show One Event With All Available Tickets’ 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