Jump to content

Adjuntar PDF junto con Factura [SOLUCIONADO]


SergioE

Recommended Posts

Buenas,

 

Me gustaría saber que maneras hay de adjuntar un pdf junto con la factura cuando el estado del pedido es aceptado por ejemplo, o poner un link en la plantilla de email que vincule para descargar el PDF de las condiciones de compra..

 

Segun la agencia del consumidor, es obligatorio entregar dicha documentación y estoy en investigación de como realizar este adjunto.

 

Gracias! 

Edited by SergioE (see edit history)
Link to comment
Share on other sites

Usted puede agregar un enlace al correo electrónico de confirmación.
Yo no parchear código PrestaShop enviar dos archivos adjuntos PDF al mismo
Usted puede enviar un archivo PDF adjunto donde las condiciones siguen la factura en la siguiente página (módulo M4 PDF Extensions puede hacerlo fácilmente).

 

You can add a link to the confirmation email.

I wouldn't patch PrestaShop code to send two PDF attachments at one

You can send one PDF attachment where the conditions follow the invoice on next pages (M4 PDF Extensions module can do it easily).

Link to comment
Share on other sites

  • 1 year later...
editar fichero classes/PaymentModule.php ( buscar comentario // Join PDF invoice) #761

 

sustituir en linea #770 {else}:

 

antes:

 

    $file_attachement = null;

 

ahora:

 

    $file_attachement['content'] = Tools::file_get_contents(_PS_ROOT_DIR_.'/url_del_archivo');

 

    $file_attachement['name'] = 'nombre_del_archivo';

 

    $file_attachement['mime'] = 'application/pdf';
Link to comment
Share on other sites

  • nadie locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...