Embedding Ticket Box From Event

Home Forums Ticket Products Event Tickets Plus Embedding Ticket Box From Event

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #116685
    gweins01
    Participant

    Is there a way to embed the ticket box on my events specific page elsewhere on my site? Basically I want to allow people to choose their tickets and then checkout without having to go to the events page in my calendar. Thanks!

    #116937
    Barry
    Member

    I don’t see why not 🙂

    The basic form of code to do this would be:

    TribeWooTickets::get_instance()->front_end_tickets_form();

    However, this does assume the global post object will contain a valid event with a number of tickets attached, so if you’re calling this from within a regular page or post you would need to take care of working around this or, alternatively, load the ticket data yourself and then include the ticket form template.

    It’s a sufficiently bespoke customization we can’t give you a ready-to-drop-in snippet, but hopefully this gives you a starting point and a rough direction to move in if you want to progress it further.

    #116941
    gweins01
    Participant

    Hmmm….well since PHP and half of what you said is beyond I don’t think I can do that.

    From another angle, is there a way to use shortcodes to display specific tickets with an add to cart button? So basically I could embed the products into the page and then each have an add to cart. Or does that still run into the issue you outlined above?

    #117322
    Barry
    Member

    That’s definitely an approach you could explore: we don’t provide any specific shortcodes to do this sort of thing, but if you check out the WooCommerce documentation you might find they have some suitable shortcodes you can use (as tickets are, ultimately, regular WooCommerce products).

    Does that help?

    #123303
    Barry
    Member

    This thread’s not seen much activity for the last couple of weeks so I’ll go ahead and close it. Of course if you still need help with this or any other issue please don’t hesitate to create a new thread (or threads) and one of the team will be only too happy to help. Thanks!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Embedding Ticket Box From Event’ is closed to new replies.