Home › Forums › Ticket Products › Event Tickets Plus › Ticket Event Email
- This topic has 18 replies, 3 voices, and was last updated 9 years, 7 months ago by
Cliff.
-
AuthorPosts
-
September 7, 2016 at 9:27 pm #1161370
Mary-Anne
ParticipantHi there
I would like to add some information to the Ticket Email that is received as the last step of a ticket purchase using WooCommerce
It is some general info like – what to bring on the day, so it is standard across every ticket sale
Where can i do this?
thanks
September 8, 2016 at 1:05 pm #1161695Cliff
MemberHi Mary-Anne.
Please reference our Themer’s Guide and copy this file:
/wp-content/plugins/event-tickets-plus/src/views/wootickets/tickets.php
to this location:
/wp-content/themes/YOUR-CHILD-THEME/wootickets/tickets.php
and make your customizations/edits to this file.
Please let me know if you have any follow-up questions on this topic.
September 15, 2016 at 11:15 pm #1164981Mary-Anne
ParticipantWhat do I do to that file once i have copied it there?
September 15, 2016 at 11:17 pm #1164982Mary-Anne
ParticipantI want to add custom text to the email sent with the final registration details
September 16, 2016 at 5:05 am #1165049Cliff
MemberMary-Anne, I’m guessing you’re not comfortable with PHP, and that’s ok.
Find line 129 of /wp-content/themes/YOUR-CHILD-THEME/wootickets/tickets.php and you’ll see </form>
After that line, enter whatever text you want. At this point in the file, you’re in HTML but not in PHP.
If you want it even further down at the bottom of the email instead, go all the way to the last line of this file (line 152 is a closing curly brace).
At this point in the file, you’re in PHP so you either need to close PHP with ?> and then enter whatever text you want and then open PHP again with <?php, or you could just use PHP echo or printf so you don’t have to close and re-open PHP. There’s no performance considerations here, just your preference.
I hope this helps.
September 22, 2016 at 6:13 pm #1167747Mary-Anne
ParticipantThis reply is private.
September 22, 2016 at 8:03 pm #1167765Cliff
MemberThanks for sending that.
Here’s what I found out:
- /wp-content/themes/YOUR-CHILD-THEME/wootickets/tickets.php was incorrect.
- it should be /wp-content/themes/YOUR-CHILD-THEME/tribe-events/wootickets/tickets.php
- and these customizations appear at your Single Event page where the WooCommerce tickets appear: https://cl.ly/2K1T2Y2j3F1y
To override the email, as you initially requested… I’ll get back to you soon. I want to double-check some things…
September 22, 2016 at 8:16 pm #1167769Mary-Anne
ParticipantHey Cliff
I don’t need it on the page, I just need it on that email that goes out with the ticket!
September 26, 2016 at 4:15 pm #1168954Cliff
MemberHi Mary-Anne.
My apologies for the delay here. I came up with this code snippet:
https://gist.github.com/cliffordp/f35669e382c6dcb2088ad8161cd63289
Please make sure to read the code’s comments. Try it out and let me know if it works for you. I hope it’s an easy-to-manage way to accomplish what you’re wanting using the WordPress Visual Editor instead of having to code HTML or keep up with any template override changes.
September 26, 2016 at 9:39 pm #1169036Mary-Anne
ParticipantThis reply is private.
September 27, 2016 at 6:11 am #1169153Cliff
MemberSorry to hear that.
Please don’t add the
<?phppart of the code snippet. That’s only added to the gist to enable syntax highlighting.If removing that doesn’t fix it, please send me a screenshot of what you added to functions.php.
And also enable WP_DEBUG and WP_DEBUG_LOG and share any PHP errors you see while visiting your wp-admin area and visiting any other areas of your site experiencing the issue.
Thanks.
September 27, 2016 at 7:24 pm #1169592Mary-Anne
Participantthanks Cliff
When I remove that and commence with /** it again crashesTo confirm do I place it at /public_html/
September 28, 2016 at 10:13 am #1169917Cliff
MemberNope!
Welcome to WordPress customizing…
Best practice for adding custom code (like to implement a PHP snippet to modify The Events Calendar) is to create a functionality plugin, unless it’s something specific to your theme, in which case best practice is to make sure you’re using a child theme, then add the customization to your child theme’s functions.php file.
That’s the detailed/technical answer, but the easiest (not saying it’s the best practice) is to open your active theme’s functions.php file and paste it in the bottom of that file (remember, without the starting <?php)
I hope this information helps!
September 28, 2016 at 8:22 pm #1170189Mary-Anne
ParticipantHi Cliff
Thank you again for sticking with me
Can you review my code for the plugin – it is still crashing the site!
September 28, 2016 at 8:23 pm #1170191Mary-Anne
Participantshould also mention tried with and without the PHP
-
AuthorPosts
- The topic ‘Ticket Event Email’ is closed to new replies.
