• Resolved clydebank1

    (@clydebank1)


    This is an odd request, but we are using the purchase of our digital products on woocommerce to deliver digital files to a mobile app, which the customer will login to with their purchase email to access.

    Because of this configuration, we don’t want the automatic downloadable files link to be included in their order completion email.

    Is there a way to use ‘downloadable’ files in woocommerce but not actually trigger the sending of those files via email when a purchase is made?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Hi @clydebank1!

    Is there a way to use ‘downloadable’ files in woocommerce but not actually trigger the sending of those files via email when a purchase is made?

    You can try the following code to remove the downloads from the email:

    add_action( 'woocommerce_email', 'remove_order_downloads_from_emails', 10, 1 );
    function remove_order_downloads_from_emails( $emails ){
        remove_action( 'woocommerce_email_order_details', array( $emails, 'order_downloads' ), 10 );
    }

    Here is how to add the code to your site correctly:

    https://rynaldo.com/how-to-add-custom-code-to-your-woocommerce-wordpress-site-the-right-way/

    Cheers!

    Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Howdy.

    We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please start a new thread.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable Downloadable Product Emails’ is closed to new replies.