Moving attendee to new ticket type

Home Forums Ticket Products Event Tickets Plus Moving attendee to new ticket type

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1192023
    Kathrine Fraser
    Participant

    Hi – we have a fixed number of places on our course, and when this is Full, students are able to “buy” a free waiting list space. If a space comes available, we then move the student from the free ticket to the paid one, and then manually send them a Woocommerce invoice for their fees.
    Is there a way to stop the automated email “Important changes to your tickets” being sent when they are moved between the ticket types?
    Thanks

    Important changes to your tickets
    We wanted to let you know that a ticket you purchased for xxxxxxxxx has been transfered to xxxxxxxxxxxx. Your ticket remains valid and no further action is needed on your part:
    xxxxxxxxxxxxx

    #1192396
    Andras
    Keymaster

    Hi Kathrine,

    Thanks for using our plugins and welcome to the forums! Great question!

    At the moment we don’t have a solution that would stop only that email, which is sent when you move an attendee.

    I can share with you a solution that should prevent both the ticket email and the “move” email as well. You can find it in this thread:

    event ticket plus – stop sending ticket email

    Let me know how that works out for you.

    Thanks and cheers,
    Andras

     

     

    #1192927
    Kathrine Fraser
    Participant

    Thanks for this – I was already stopping the ticket emails with:

    function wootickets_email_no_no() {
        return 'no';
    }
    
    add_filter( 'wootickets-tickets-email-enabled', 'wootickets_email_no_no' );
    
    /* WooCommerce Tickets - Hide You'll receive your tickets in another email. */
    add_filter('wootickets_email_message', 'woo_tickets_filter_completed_order', 10 );
    function woo_tickets_filter_completed_order($text) {
    	$text = "";
     	return $text;
    }

    So have deleted this and replaced it with

    /*
    * Events Tickets Plus - WooCommerce Tickets - Prevent Ticket Email from being sent.
    * @ Version 4.0
    */
    add_action( 'init', 'wootickets_stop_sending_email' );
    function wootickets_stop_sending_email() {
        if ( class_exists( 'Tribe__Tickets_Plus__Commerce__WooCommerce__Main' ) ) {
            $woo = Tribe__Tickets_Plus__Commerce__WooCommerce__Main::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' ) );
        }
    }

    Unfortunately, the “Important changes to your tickets” is still sending… if you are able to let me know if I am doing something wrong it would be appreciated.

    #1193452
    Andras
    Keymaster

    Hello Kathrine,

    I’m sorry to keep you waiting this long. I needed to pull in some help to get a solution for this.

    So the above should stop the ticket email. If you want that functionality, then leave that snippet where it is.

    In order to stop the emails about the change, than also add this snippet to your functions.php file:

    https://gist.github.com/elimn/6bde40a8b14444bb76700d9f225f9ccf

    Note, in the return line where you see the blackhole@ email address, it is best to replace that with something that is under the same domain as the website. Preferably a blackhole email address: basically an email address that exists but nobody reads or emails get automatically deleted. Something like [email protected]. You can contact the IT dept to give you one.

    Please try this and let me know how it works out for you.

    Cheers,
    Andras

    #1203174
    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 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Moving attendee to new ticket type’ is closed to new replies.