
Attaching individual documents, files, and PDFs to orders or the order confirmation email has never been easier. While standard German Market or Germanized allows attaching terms and conditions, invoices, data protection policies, imprints, or simple standard documents, individual files cannot be attached. After purchase, any file attachments can be sent and released via emails and in the backend under downloads. Downloads can be assigned to individual products or categories – incredibly simple and great!
WooCommerce Attach File(s) & Documents to Order (Email Attachments)
WooCommerce Attach Me! is a WooCommerce plugin that allows shop managers to attach any type of file to their customers‘ orders. Add images, documents, videos, proofs… no limits! Furthermore, an expiry date with secured links and much more can also be created.
In addition, shop managers and administrators can also:
- Attach files to products (such as manuals, documents, etc.): These files can be automatically downloaded on the product pages and/or on the order details page after the customer has purchased them (and optionally only visible if the order has reached a certain status)! You can also specify an expiration time (only for order attachments)!
- Create automatic email attachments: Sent when a specific order status email is sent by WooCommerce
Selling Downloadable Products via WooCommerce as Email Attachments
Order attachments / downloads online: Shop managers can upload one or more files directly from the „Edit Order“ page.
WCAM adds an „attachment box“ for each order, where the shop manager can add as many files as they wish! Each attachment can only be visible for specific order statuses!
Simple products and variations are supported: The shop administrator can also attach files to products (directly from their edit pages), which can be automatically downloaded on the product page and/or the order details page after the order is placed. These attachments can also only be available if the order reaches a certain status or if the current user has specific user roles.
Furthermore, the shop administrator can set an expiration time for each order attachment (a specific date or a period after the order during which the download is possible). Optionally, order attachments can use a masked URL, which allows the system to verify that the request belongs to an authorized user.
This type of attachment is useful for attaching manuals, PDFs, or other media files. Optionally, files can be sent automatically via email.
The shop administrator can now also use the new tools for bulk product attachments to assign attachments to products (select directly or use categories).
More features for email attachments and downloads in WooCommerce with this plugin
- INSTANT EMAIL NOTIFICATION OF THE CUSTOMER WITH FILE LINKS AND / OR FILES ATTACHED TO THE EMAIL
The shop administrator can notify the customer when a file is attached to the order and link it directly in the text message. Optionally, all uploads can also be sent directly via email as an attachment. In addition, you can also embed a previously saved preset text! - ORDER EMAIL FILE EMBEDDING
Order attachments can optionally be embedded in processing, completed, or customer invoice emails! - DISCLAIMER FOR ORDERS
Order attachments can optionally only be downloaded if the user has accepted a disclaimer. - SECURE FILE LINKS
The plugin creates secure download links for each product and order attachments. This way, only the order owner or the one who bought the product can access their attachments! In addition, for order attachments, the „Secure Download“ option can be activated/deactivated as desired. - FILE EXPIRATION DATE
For both product and order attachments, you can set an expiration date or an expiration time (after the order date) at which the attachment expires and is no longer available for download! - FRONT END
Every customer can easily download their order attachments by opening the „My Account“ -> „View Order“ page. On this page, the plugin adds a new section called „Attachments“ where they will find all files attached by the shop manager for that order. - AUTOMATIC EMAIL ATTACHMENTS
With the WCAM plugin, you can also create „automatic email attachments“. With the special configurator, you can attach the same file to the account, new order, processing order, completed order, and invoice emails! - ATTACHMENTS DOWNLOADABLE ON MY ACCOUNT – DOWNLOADS TAB
Optionally, order and product attachments can be listed and downloaded directly from the My Account -> Downloads tab. To do this, simply enable the special option in the General Notes & Text -> My Account – Downloads section. - CUSTOMIZE ORDER DETAIL PAGE HTML SNIPPET AND OTHER TEXTS
The shop administrator can customize the HTML snippet used on the „Order Details“ page by copying the file /woocommerce-attach-me/templates/view_order_template.php to {your theme folder}/wcam/view_order_template.php and customizing it as desired! - Don’t want to mess with templates or files? No problem! You can customize text directly with the WooCommerce Attach Me! menu option!
- IMAGE PREVIEW
It is possible to activate the „Image Preview“ option, which, when an attachment image is detected. In addition, previews can be displayed with a lightbox (PopUp)! - CUSTOMER APPROVAL, FEEDBACK AND ADMIN EMAIL NOTIFICATIONS
For each order attachment, the shop manager can enable „Customer Feedback“, „Customer Approval“ and the selective option „Required Feedback“. This option makes the feedback field required only if a specific approval value has been selected. The administrator can also enable the option to receive an email notification when a user approves/gives feedback on an attachment, and to notify the customer when a file is attached to the order. - NOTE: Some servers have restrictions that prevent wp_mail() from sending attachments larger than 5MB. If you encounter such a problem, you can simply install any SMTP email plugin. This type of plugin allows you to use external email services (such as Gmail, Outlook, any SMTP server) to send emails.
- SHORTCODE USAGE
With the special [wcam_last_order_attachments], the last order attachments for the currently logged-in user can now be displayed! - KEEPS YOUR SERVER CLEAN
Deleting the order also deletes any attachments. - EVENT TICKETS BY MODERN TRIBE COMPATIBLE
The plugin is compatible with event products used by Event Tickets. Perform all tests you need on the live demo site where the free version of Event Tickets is installed. - WPML Multilingualism
Email descriptions for bulk product attachments and product attachment description texts are not transferable. Product attachments must be created for each product translation. - KNOWN INCONVENIENCE
The TinyMCE Advanced Plugin is not compatible with the WCAM Plugin. It prevents the advanced text area added by WCAM on the order page from functioning correctly. If you use it and want to purchase the plugin, disable it to use the WCAM plugin properly. - BULK DELETE AND ATTACHMENTS COUNTER
Directly from the order list, you can easily track how many attachments exist for orders and delete them!
NOTIFICATION EMAIL (WITH DIRECT DOWNLOAD / VIEW LINKS AND / OR FILE ATTACHMENTS)
Become more visible on Google & Social Media?
In a free strategy consultation for data-driven online marketing, we uncover your untapped potential, review any existing ad accounts if necessary, examine your SEO ranking and visibility, and determine which strategy is appropriate for your budget and which active measures will lead to more inquiries or sales.

✅ More visibility & perception through targeted placement
✅ More visitors > prospects > customers > revenue
✅ Reach target groups scalably with SEA
✅ Act and grow sustainably with SEO
🫵 Maximum success with our hybrid strategy
💪 More than 15 years of experience across industries in over 1,000+ projects demonstrable!
My Account – Downloads Tab
Optionally, attachments can be listed on the My Account -> Downloads tab.
SECTION AUTOMATIC PRODUCT DOWNLOADABLE FILES
On the order details page, a section with downloadable product files for pre-made products is displayed. The section title can be changed via the „General Settings“ menu.
Like all plugins, this one can also be translated into German via Loco Translate.
Schedule a non-binding consultation appointment now:
E-Mail: fi@vastcob.com
Florian Ibe
To place the files as email attachments using the standard „Downloadable Products“ function, there is this solution
If you sell virtually downloadable products via Woocommerce, it is always important to cover all the details. Simplifying as much as possible will greatly increase your sales and customer reputation.
One of the many things you can do to ensure customers see their download more clearly is to place downloadable attachments in emails sent via your Woocommerce templates.
Add the code below to your functions.php to activate it.
// Add Downloadable Products to Woocommerce Completed Order & Invoice Emails as Attachments
add_filter( 'woocommerce_email_attachments', 'woocommerce_emails_attach_downloadables', 10, 3);
function woocommerce_emails_attach_downloadables($attachments, $status, $order) {
if ( ! is_object( $order ) || ! isset( $status ) ) {
return $attachments;
}
if ( empty( $order ) ) {
return $attachments;
}
if ( ! $order->has_downloadable_item() ) {
return $attachments;
}
$allowed_statuses = array( 'customer_completed_order' );
if ( isset( $status ) && in_array( $status, $allowed_statuses ) ) {
foreach ( $order->get_items() as $item_id => $item ) {
foreach ( $order->get_item_downloads( $item ) as $download ) {
$attachments[] = str_replace( content_url(), WP_CONTENT_DIR, $download['file'] );
}
}
}
return $attachments;
}
Source: https://jonaskjodt.com/adding-downloadable-woocommerce-products-to-email-as-attachments/









