• I have this download link in customer complete email’s order detail table. I also want this download link appear in admin new order email’s order detail table also. How should I do?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hi @caesarnay,

    It sounds like what you would need to do is possibly edit the WooCommerce email templates and create the code to display this download link you reference.

    https://docs.woocommerce.com/document/template-structure/

    Mina

    (@purpleberryservices)

    Thread Starter caesarnay

    (@caesarnay)

    Thanks guys. When I looked at woocommerce>template>email>admin-new-order.php and customer-completed-order.php the codes look the same.
    template file

    Here is the customer received email
    customer completed order email

    Here is the admin received email
    admin new order emai

    Sorry, I’m new to wordpress templating and I don’t know which file is responsible for outputting that download link line. Or is it in woocommerce>include>emails>class-wc-email-customer-completed-order.php and class-wc-email-new-order.php files?

    Thread Starter caesarnay

    (@caesarnay)

    I think I found it. it’s in woocommerce>include>abstracts>abstract-wc-order.php file.

    In email_order_items_table function,
    ‘show_download_links’ => $this->is_download_permitted() && ! $args[‘sent_to_admin’],

    But instead of modifying the code there, possible to overwrite it in theme>functions.php file?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Product download link in admin new order email’ is closed to new replies.