Conditional 'Buy Ticket' button with anchor link

Home Forums Ticket Products Eventbrite Tickets Conditional 'Buy Ticket' button with anchor link

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #20297
    Michelle
    Participant

    I would like to create a ‘Buy ticket’ button on my Event details page which only shows up if there is an EventBrite ticket associated with the event. I would then put this as an anchor link to the EventBrite ticket on the page. I know I would need to add an ‘if … then’ piece of code on the Single.php template but not sure exactly how to do it.
    Thanks.

    #20320
    Jonah
    Participant

    Hi Michelle,

    This should work for you: https://gist.github.com/2890200

    Cheers,
    Jonah

    #20460
    Michelle
    Participant

    Hi Jonah – thanks that does just what I need 🙂

    #20496
    Jonah
    Participant

    Awesome, glad to be of service!

    #977056
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Conditional 'Buy Ticket' button with anchor link’ is closed to new replies.