Order Confirmation Email: Remove "You’ll receive your ticket in another email"

Home Forums Ticket Products Event Tickets Plus Order Confirmation Email: Remove "You’ll receive your ticket in another email"

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #66683
    conwin
    Participant

    Hello,

    I am trying to remove “You’ll receive your ticket in another email” in the order confirmation email to both the customer and the admin email to me.
    I have added the below code to my child functions.php. However, it is not working. I got this from here:

    Remove tickets email


    https://gist.github.com/MZAWeb/d18252e91b6328abbf93

    Add to functions.php:

    add_action( ‘init’, ‘wootickets_stop_sending_email’ );
    function wootickets_stop_sending_email() {
    $woo = TribeWooTickets::get_instance();
    remove_filter( ‘woocommerce_email_classes’, array( $woo, ‘add_email_class_to_woocommerce’ ) );
    add_action( ‘woocommerce_email_after_order_table’, array( $woo, ‘add_tickets_msg_to_email’ ) );
    }

    remove_action(‘woocommerce_email_after_order_table’, array(TribeWooTickets::get_instance(), ‘add_tickets_msg_to_email’), 10, 2 );

    Thank You

    #67023
    Kelly
    Participant

    Hi, conwin. It looks like you may be conflating two different answers and that’s causing the issue.

    Please try only using the gist here: https://gist.github.com/MZAWeb/d18252e91b6328abbf93 (without the opening “<?php" tag).

    That should do the trick.

    #67866
    conwin
    Participant

    Hi
    So I tried it with only the code you suggest and it is still not working. Please advise. My company does not email tickets.
    Thank you

    #67879
    Kelly
    Participant

    I’m sorry that didn’t work, conwin. Let’s take this one step at a time.

    For defeating the emails being sent, please try using this snippet: http://pastebin.com/WgnUYJwV

    Let me know how it works. If that’s taken care of, we can move on to removing the text. If not, we’ll continue trying to track this first piece down.

    #70071
    Kelly
    Participant

    Hi, conwin. Since you haven’t yet responded, I’m going to consider this thread closed.

    If you’d like to pursue this matter further, please start a new discussion thread and reference this one. 🙂 We’re always happy to help!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Order Confirmation Email: Remove "You’ll receive your ticket in another email"’ is closed to new replies.