Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- `if (strpos($template, 'shipped')){
- $id_factura = $templateVars['{id_order}'];
- $orden = new Order($id_factura);
- $factura['content'] = PDF::invoice($orden, 'S');
- $factura['name'] = $id_factura.'.pdf';
- $factura['mime'] = 'application/pdf';
- $message->attach(new Swift_Message_Attachment($factura['content'], $factura['name'], $factura['mime']));
- }`
Add Comment
Please, Sign In to add comment