Easy digital downloads remove "Print Ticket: URL" from email inc {download_list}

Home Forums Ticket Products Event Tickets Plus Easy digital downloads remove "Print Ticket: URL" from email inc {download_list}

  • This topic has 7 replies, 2 voices, and was last updated 9 years ago by David Hager.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1262496
    David Hager
    Participant

    Hey I would like to remove

    Print Ticket: https://domain.com/index.php?eddfile=3772%3A3682%3A0%3A0&edd_action=print_ticket&file=tribe://edd.tickets/print&token=e99e1daa5e13253488e4c6360283a8e6

    from my email I have found a snippet that should do it for WooCommerce, but I am using Easy Digital Downloads and would like to use the same feature

    function removeWooTicketsPDFs() {
    	$pdfCallback = array(TribeWooTickets::get_instance(), 'add_PDF_to_email');
    	remove_filter('woocommerce_email_attachments', $pdfCallback, 10);
    }
    
    add_action('plugins_loaded', 'removeWooTicketsPDFs', 20);

    Any tips?

    #1263725
    Cliff
    Member

    Hi. Could you please clarify if you’re wanting all the Print Tickets text/links to not display at all?

    If you only want it removed from the email, is it this email you want it removed from: https://cl.ly/081X0S460J1u ?

    #1264314
    David Hager
    Participant

    Hey, thanks for the reply.

    I want to remove the link + text, so in your example I want to keep the ticket name and remove the link + text “Print ticket”.

    I got my settings to send the email in plain text so my email stats it like this Print Ticket: https://domain.com/index.php?eddfile=3772%3A3682%3A0%3A0&edd_action=print_ticket&file=tribe://edd.tickets/print&token=e99e1daa5e13253488e4c6360283a8e6 but it is the same email as your screenshot.

    #1264614
    Cliff
    Member

    Gotcha.

    Well this is straight from EDD’s email templates. It’s actually the output for the {download_list} tag.

    ET+ will create the EDD item and add a download file to it, but it does not edit the EDD emails specific to tickets.

    You might want to start by looking at the edd_email_tag_download_list()
    method
     and the following methods, like edd_email_tag_download_list_plain().

    If you need some coding help, you may want to ask your developer or reference our documentation and list of known customizers.

    #1264711
    David Hager
    Participant

    Thanks Cliff,

    I’ll look in to it.

    #1265414
    Cliff
    Member

    You’re welcome. Feel free to share your solution here if you get it sorted out… or let me know if you don’t.

    #1275270
    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 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Easy digital downloads remove "Print Ticket: URL" from email inc {download_list}’ is closed to new replies.