Home › Forums › Ticket Products › Event Tickets Plus › Event Ticket Pro for Single Event – Shortcode for Ticket Sales
- This topic has 5 replies, 2 voices, and was last updated 8 years, 2 months ago by
Jennifer.
-
AuthorPosts
-
February 3, 2018 at 2:05 pm #1443366
weseba
ParticipantHi Guys,
I have a website which is only about one event. So I have all the information (Date, Location, Description, etc..) on the start page. I now would like to sell tickets via woocommerce.
I don’t want to use an extra page for the information and the booking. So I would like to add the ticket select box (screenshot) to the start page and don’t want to link to the extra page.
Is there a shortcut to include ticket sale into my start page?
Like [eventTickets eventId=”100″]February 3, 2018 at 6:17 pm #1443446weseba
ParticipantI now wrote my own shortcut. I copied some code from the view Folder and made a shortcut.
I can now call
[tribe_tickets id="1013"]Currently only the JS style is missing. How can I do that?
You can find my function here:
https://gist.github.com/anonymous/9eec1abb6c8ace669fb573e5b51b15f9-
This reply was modified 8 years, 3 months ago by
weseba. Reason: removed code to make post shorter
February 4, 2018 at 4:11 am #1443553weseba
ParticipantOk. I did not manage to embedd the css and js.
So i did some hacky inline css.https://gist.github.com/anonymous/16e313462e860df16ee9e56139819160
Later i will add some inline JS.
If someone else has a better solution then please help.
February 7, 2018 at 11:19 am #1446700Jennifer
KeymasterHello,
Thanks for reaching out! I’m sorry for the delayed response – we have a very unusually high volume of threads at the moment and are working hard to get to everyone as quickly as possible.
First, I want to mention that you can add ticket forms to other post types besides events (such as pages). You can enable other post types by going to Events > Settings > Tickets > Ticket Settings. So, it might be easiest to add the tickets directly onto the page you want them to show up on instead of to an event.
There are some options for moving where the form displays on the page. Otherwise, if the shortcode that you made is working the way you want it to, then that is probably your best bet.
Please let me know if this helps and if you have any questions!
Thanks,
Jennifer
February 20, 2018 at 4:32 am #1458453weseba
ParticipantI have published my finished “Quick and Dirty” shortcode here:
https://github.com/bastiW/event-ticket-plus-shortcode
Maybe someone helps it.
February 20, 2018 at 9:17 am #1458855Jennifer
KeymasterAwesome, thanks so much for sharing that! I’m sure other users will find it helpful 🙂
Since this has been marked “resolved”, I’ll go ahead and close it out. If you run into any other issues, please feel free to open up a new thread!
-
This reply was modified 8 years, 3 months ago by
-
AuthorPosts
- The topic ‘Event Ticket Pro for Single Event – Shortcode for Ticket Sales’ is closed to new replies.
