Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

189
Vistas
Add the New order email notification attachment to the vendor email

In WooCommerce, I use woocommerce-product-vendors as multi vendor plugin. After checkout I receive as admin an a new order email notification with the attachment (uploaded file).

But the vendor receive the same email but without the attachment. I need that the vendor receive the attachment too.

Thanks

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

You could try this code with a custom function hooked in woocommerce_email_recipient_new_order filter hook:

add_filter('woocommerce_email_recipient_new_order', 'adding_vendor_email', 10, 2);
function adding_vendor_email( $recipient, $order ) {
    if ( ! is_a( $order, 'WC_Order' ) ) return $recipient; // (Optional)

    // Your code or conditions to get the vendor email (if needed)

    $recipient .= ",vendor@yourdomain.com";
    return $recipient;
}

You will need to customize this custom hooked function to get the email dynamically…

Code goes in function.php file of your active child theme (or theme) or also in any plugin file.

This code is tested and works

You could also use woocommerce_email_attachments filter hook… see this related thread

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda