Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. $barcodeobj = new TCPDFBarcode($order->order_barcode, 'C128');
  2.  
  3. $barcode = base64_encode($barcodeobj->getBarcodePNG(1, 30, array(255,255,255)));
  4.  
  5. Mail::Send(
  6. (int) $order->id_lang, 'order_conf',
  7. Context::getContext()->getTranslator()->trans( 'Order confirmation', array(), 'Emails.Subject', $orderLanguage->locale ),
  8. $data,
  9. $this->context->customer->email,
  10. $this->context->customer->firstname . ' ' . $this->context->customer->lastname,
  11. null,
  12. null,
  13. $barcode,
  14. null,
  15. _PS_MAIL_DIR_,
  16. false,
  17. (int) $order->id_shop
  18. );
  19.  
  20. $extra_pdf = array();
  21.  
  22. $extra_pdf['content'] = $barcode.'.png';
  23.  
  24. $extra_pdf['name'] = 'barcode.png';
  25.  
  26. $extra_pdf['mime'] = 'image/png';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement