Hi,
When i create an order from backoffice, it dosent send email to the costumer and shows the following error:
Class 'QRCodeLib' not found
in file override/classes/pdf/HTMLTemplateInvoice.php at line 285
Source file: override/classes/pdf/HTMLTemplateInvoice.php
266: $description_short = strip_tags($product->description_short);
267: if (Tools::strlen($description_short) > 90) {
268: $stringCut = Tools::substr($description_short, 0, 90);
269: $description_short = Tools::substr($stringCut, 0, strrpos($stringCut, ' ')).'...';
270: }
271: $order_detail['description_short'] = $description_short;
272: $order_detail['barcode'] = '';
273: $code = $template->barcodeproductformat;
274: $text = '';
275: if($code == 'product_link'){
276: $text = $product->getLink();//urlencode($product->getLink());
277: }else{
278: $text = urlencode($order_detail[$code]);
279: }
280: $filename = md5($template->barcodeproducttype.'_'.$text).'.png';
281: if(!Tools::file_exists_no_cache(_PS_MODULE_DIR_.'gwadvancedinvoice/views/img/barcodes/'.$filename)){
282: if($template->barcodeproducttype == 'qrcode'){
283: $ecc = 0;
284: if($code == 'product_link') $ecc = 1;
285: $qrcodeObj = new QRCodeLib($text,$ecc);
286: $im = $qrcodeObj->createImage(4,2);
287: imagepng($im,_PS_MODULE_DIR_.'gwadvancedinvoice/views/img/barcodes/'.$filename);
288: }else{
289: $bacodeObj = new Barcode($text,$template->barcodeproducttype);
290: $bacodeObj->getBarcodePNG(_PS_MODULE_DIR_.'gwadvancedinvoice/views/img/barcodes/'.$filename,2,35,array(0,0,0));
291: }
292: }
293: if(Tools::file_exists_no_cache(_PS_MODULE_DIR_.'gwadvancedinvoice/views/img/barcodes/'.$filename)){
294: $order_detail['barcode'] = '<img src="'.$base_url.'modules/gwadvancedinvoice/views/img/barcodes/'.$filename.'"/>';
Do you have any solution for it? Thank you.