Ateendee data in ticket e-mail

Home Forums Ticket Products Event Tickets Plus Ateendee data in ticket e-mail

Viewing 10 posts - 16 through 25 (of 25 total)
  • Author
    Posts
  • #1136990
    George
    Participant

    Hey Carlos,

    Thanks for following up.

    Modifying the output of those fields is unfortunately not possible at this time unless you were to modify a core plugin method called ticket_email_meta().

    This method can be found at this location within Event Tickets Plus:

    event-tickets-plus/src/Tribe/Meta/Render.php

    You would have to modify that core plugin file, which we generally do not recommend because the code will be erased upon the next update of Event Tickets Plus.

    I am sorry to bear this news, Carlos! One thing I have done in the meantime is make a ticket for our developers to add a new filter there, so that you could manipulate which fields show up and which are hidden just by writing code safely from within your theme or a custom plugin. We could help with that once the filter exists—but for now, manual file modification is required. 🙁

    Sorry to disappoint, Carlos—let me know what you think and if there is anything else I can try to help with here!

    — George

    #1137086
    Carlos Henrique
    Participant

    Hi George!

    I’m almost there. Send the meta data in the e-mail is what I need.

    One last thing: can I remove the default action and create a new one with my tweaks in the functions.php file? If so, can you assist me?

    Thanks

    #1137200
    George
    Participant

    Hey Carlos,

    Thanks for following up. I’m sorry for my misunderstanding here, but can you clarify what you mean when you say the following?

    can I remove the default action and create a new one with my tweaks

    ☝️ What do you mean here? Can you share the name of the specific “default action” you are referring to?

    Thank you!
    George

    #1137204
    Carlos Henrique
    Participant

    George,

    I’m trying not to edit the core files, I’m thinking if it is possible to do a remove_action in the functions.php of my theme and then do a add_action if my customization. I’m talking about the following action found in the Render.php file.

    add_action( 'tribe_tickets_ticket_email_ticket_bottom', array( $this, 'ticket_email_meta' ) );

    Is it possible to hook this in my function file?

    Thanks

    #1137268
    George
    Participant

    Hey Carlos,

    Thank you for clarifying. Using a remove_action should indeed be possible—I would recommend trying something like this in your theme’s functions.php file:


    add_action( 'init', 'tribe_remove_tickets_email_bottom_action' );

    function tribe_remove_tickets_email_bottom_action() {
    remove_action( 'tribe_tickets_ticket_email_ticket_bottom', array( 'Tribe__Tickets_Plus__Meta__Render', 'ticket_email_meta' ) );
    }

    You can then add your own actions. I hope this helps!

    George

    #1137445
    Carlos Henrique
    Participant

    George,

    The code is not working. It is not removing the action.

    Any toughts why?

    Thanks

    #1137769
    George
    Participant

    Hey Carlos,

    Sorry my suggestion didn’t work! I think it’s because I am making the call to early, and so the action gets re-attached later anyways. I have reached out to our developers for some assistance on this.

    — George

    #1143519
    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.

    #1346152
    Nico
    Member

    Hi there Carlos,

    A new maintenance release has been recently shipped including a new filter tribe_event_tickets_plus_email_meta_fields. This will help you out customizing meta fields in emails.

    More information in the release notes and hotfix notes.

    Please update the plugins and let us know if the fix works for you,
    Best,
    Nico

    #1356828
    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 10 posts - 16 through 25 (of 25 total)
  • The topic ‘Ateendee data in ticket e-mail’ is closed to new replies.