Posted: February 4, 2019 at 11:44 am
|
Instead of offering the user a link to the event details page, can there be a ticket selector right there on the table? Thanks guys! |
Hi Shelly, You could add that with some custom code (see this code example that shows one way to add the ticket selector) https://gist.github.com/joshfeck/e8fcb3946f56490d1384bfcc449caa9b Please note that adding the ticket selector to the events table will have the effect of slowing down that page because the ticket selector needs to query how many tickets are left from the database, which it will be checking for all tickets for all events on that page. |
|
|
I’m not sure if I need to modify that code somehow or just use as-is. I tried it and this is what I’m getting: https://portlandfashioninstitute.com/certificate-programs/credit-class-list-test/ Ideally, that More Info would just open to show the ticket tables from the events detail page. What did I miss? Thank you Josh! |
You may need to modify the code if you’re not seeing a ticket selector. Here’s the code that adds the ticket selector:
You could try removing the
|
|
|
Josh, (Moderator note) code is now here: And here’s our page: https://portlandfashioninstitute.com/certificate-programs/credit-class-list/
|
Hi Shelly, It looks like somewhere along the way you copied a template that had all of the datetime information removed. What you could do is start with the original template: Then add the extra table heading around line 50. Then add:
In the future, please use a GitHub gist or a wpbin (from wpbin.io) to post large blocks of code. We ask this because large blocks of code are unreadable here. |
|
The support post ‘Can we add ticket selector to Events Table?’ 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.