Show the Shop Vendor’s email for each download purchased

A user on the Easy Digital Downloads’ forums wanted a new email tag for the purchase receipt so they could list each email address of the Shop Vendor who added the download. This is so the customer who purchased the product knows who to get in contact with should they have any questions.

Simply copy and paste the following functions (mind the opening PHP tag) into your child theme’s functions.php or custom plugin.

In the purchase receipt field under downloads → settings → emails, you can enter this:

For more information about your order, please contact one of the following vendors:

{vendor_emails}

This will output the following in your purchase receipt assuming the user purchased 3 different downloads, added by 3 unique Shop Vendors:

For more information about your order, please contact one of the following vendors:

Download One
shopvendor1@email.com

Download Two
shopvendor2@email.com

Download Three
shopvendor3@email.com

3 thoughts on “Show the Shop Vendor’s email for each download purchased”

Leave a Reply

Your email address will not be published. Required fields are marked *