Disable ticket emails

Home Forums Ticket Products Event Tickets Plus Disable ticket emails

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1627127
    robcoers
    Participant

    Hi,
    I found this thread:

    disable confirmation emails

    which is exactly what I need. I want to remove the “You’ll receive your tickets in another email.” and i copied the suggested code in my functions.php
    I also disabled the email settings in the tickets plugin.

    /* Disable tickets emails for Woo */
    add_filter( ‘wootickets-tickets-email-enabled’, ‘__return_false’ );

    /* Remove the message ‘You’ll receive your tickets in another email’ from the Woo Order email */
    add_filter( ‘wootickets_email_message’, ‘__return_empty_string’

    Since i think the closing tags were missing (?) i added them:

    /* Disable tickets emails for Woo */
    add_filter( ‘wootickets-tickets-email-enabled’, ‘__return_false’ );

    /* Remove the message ‘You’ll receive your tickets in another email’ from the Woo Order email */
    add_filter( ‘wootickets_email_message’, ‘__return_empty_string’ );
    }

    However, both resulted in a blank page upon loading a page in the front end.

    Could you check?

    Thanks,
    Rob

    #1627844
    Sky
    Keymaster

    Hi Rob,

    Thanks for reaching out. I will try to help you get this sorted.

    It looks like part of the code I had provided got cut off. The editor here is not good at handling code.

    I put the complete snippet up on github. It looks like you mostly got it, though I do see an extra “}” in what you pasted here.

    Try copying the code from here: https://gist.github.com/skyshab/1f1c7ddd8fc842134faadb89c2f8ac94

    Usually a blank screen on the front end is the result of a PHP error. I tried this code out to insure it’s not breaking anything.

    Let me know if that works for you.

    Thanks,
    Sky

    #1628133
    robcoers
    Participant

    Great Sky, that helped.

    #1629293
    Sky
    Keymaster

    Hi again,

    Great! Glad I was able help with that.

    Please let us know if you have any questions or issues in the future.

    Thanks,
    Sky

    #1643824
    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 ‘Disable ticket emails’ is closed to new replies.