Event Ticket Pro for Single Event – Shortcode for Ticket Sales

Home Forums Ticket Products Event Tickets Plus Event Ticket Pro for Single Event – Shortcode for Ticket Sales

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1443366
    weseba
    Participant

    Hi 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″]

    #1443446
    weseba
    Participant

    I 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
    #1443553
    weseba
    Participant

    Ok. 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.

    #1446700
    Jennifer
    Keymaster

    Hello,

    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

    #1458453
    weseba
    Participant

    I have published my finished “Quick and Dirty” shortcode here:

    https://github.com/bastiW/event-ticket-plus-shortcode

    Maybe someone helps it.

    #1458855
    Jennifer
    Keymaster

    Awesome, 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!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Event Ticket Pro for Single Event – Shortcode for Ticket Sales’ is closed to new replies.