QR.php override

Home Forums Ticket Products Event Tickets Plus QR.php override

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1232685
    Bram Huisman
    Participant

    Hi there,

    I want to override the QR.php file. I’ve made a special function so my users can download a pdf ticket from within there account section. Is this possible in some way?

    Greetz,

    #1233203
    Cliff
    Member

    Hi, Bram.

    If I am understanding your question fully, you could remove this action and add your own:

    add_action( 'tribe_tickets_ticket_email_ticket_bottom', array( $this, 'inject_qr' ) ); from /wp-content/plugins/event-tickets-plus/src/Tribe/QR.php

    If that doesn’t answer your question, please provide your full code and I’ll see if I can help further with your customization.

    Also, FYI, you might be requesting the same thing as one of our existing feature requests: https://tribe.uservoice.com/forums/195723-feature-ideas/suggestions/5486386-tickets-attached-to-emails-as-pdfs

    Please do add your vote there.

    This allows us to gauge interest in this particular feature request, which helps us prioritize our development efforts.

    Thank you.

    #1233282
    Bram Huisman
    Participant

    Well.. it’s already working.. but the new function needs to be placed within the qr.php

    The only thing i want is to override that template within my theme.. so when i update te plugin my custom function doesn’t get lost.

    #1234847
    Cliff
    Member

    Bram,

    Another team member came up with this custom code to override the QR… but hopefully someday it’ll be a template file that adheres to our Themer’s Guide.

    For now, please check it out:

    https://gist.github.com/elimn/8a0a0dfd02842c30ff3d27e895819837

    Please let me know if you have any follow-up questions on this topic.

    #1251123
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘QR.php override’ is closed to new replies.