Ticket Event Email

Home Forums Ticket Products Event Tickets Plus Ticket Event Email

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #1161370
    Mary-Anne
    Participant

    Hi 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

    #1161695
    Cliff
    Member

    Hi 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.

    #1164981
    Mary-Anne
    Participant

    What do I do to that file once i have copied it there?

    #1164982
    Mary-Anne
    Participant

    I want to add custom text to the email sent with the final registration details

    #1165049
    Cliff
    Member

    Mary-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.

    #1167747
    Mary-Anne
    Participant

    This reply is private.

    #1167765
    Cliff
    Member

    Thanks 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…

    #1167769
    Mary-Anne
    Participant

    Hey Cliff

    I don’t need it on the page, I just need it on that email that goes out with the ticket!

    #1168954
    Cliff
    Member

    Hi 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.

    #1169036
    Mary-Anne
    Participant

    This reply is private.

    #1169153
    Cliff
    Member

    Sorry to hear that.

    Please don’t add the <?php part 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.

    #1169592
    Mary-Anne
    Participant

    thanks Cliff
    When I remove that and commence with /** it again crashes

    To confirm do I place it at /public_html/

    #1169917
    Cliff
    Member

    Nope!

    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!

    #1170189
    Mary-Anne
    Participant

    Hi Cliff

    Thank you again for sticking with me

    Can you review my code for the plugin – it is still crashing the site!

    #1170191
    Mary-Anne
    Participant

    should also mention tried with and without the PHP

Viewing 15 posts - 1 through 15 (of 18 total)
  • The topic ‘Ticket Event Email’ is closed to new replies.