Home › Forums › Ticket Products › Event Tickets Plus › Ateendee data in ticket e-mail
- This topic has 25 replies, 6 voices, and was last updated 8 years, 7 months ago by
Support Droid.
-
AuthorPosts
-
July 7, 2016 at 4:10 pm #1136990
George
ParticipantHey 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.phpYou 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
July 7, 2016 at 9:18 pm #1137086Carlos Henrique
ParticipantHi 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
July 8, 2016 at 7:01 am #1137200George
ParticipantHey 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!
GeorgeJuly 8, 2016 at 7:08 am #1137204Carlos Henrique
ParticipantGeorge,
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
July 8, 2016 at 9:17 am #1137268George
ParticipantHey 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
July 8, 2016 at 11:20 am #1137445Carlos Henrique
ParticipantGeorge,
The code is not working. It is not removing the action.
Any toughts why?
Thanks
July 9, 2016 at 9:27 am #1137769George
ParticipantHey 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
July 24, 2016 at 9:35 am #1143519Support Droid
KeymasterThis 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.September 7, 2017 at 10:17 am #1346152Nico
MemberHi 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,
NicoSeptember 29, 2017 at 9:36 am #1356828Support Droid
KeymasterHey 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 -
AuthorPosts
- The topic ‘Ateendee data in ticket e-mail’ is closed to new replies.
