Guest User

Untitled

a guest
Nov 22nd, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. `if (strpos($template, 'shipped')){
  2. $id_factura = $templateVars['{id_order}'];
  3. $orden = new Order($id_factura);
  4. $factura['content'] = PDF::invoice($orden, 'S');
  5. $factura['name'] = $id_factura.'.pdf';
  6. $factura['mime'] = 'application/pdf';
  7. $message->attach(new Swift_Message_Attachment($factura['content'], $factura['name'], $factura['mime']));
  8. }`
Add Comment
Please, Sign In to add comment