From c369f993d35fb4892500a08e3d2ff8734d795ebd Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Wed, 22 Sep 2021 15:31:08 +0000 Subject: [PATCH] wip #4616 @0:10 --- inc/ws/Util/html5/master/class.ws.html5.compiler.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/inc/ws/Util/html5/master/class.ws.html5.compiler.php b/inc/ws/Util/html5/master/class.ws.html5.compiler.php index bcc49d813..06eb45529 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -461,11 +461,17 @@ class wsHTML5Compiler $this->addJsLib('html2pdf', 'js/libs/html2pdf/html2pdf.min.js'); $this->addJsLib('multiselect', 'js/libs/jquery/jquery.multi-select.js'); $this->addJsLib('jqueryui', 'js/libs/jquery/jquery-ui.min.js'); + $this->addJsLib('exceljs', 'js/libs/exceljs.min.js'); $this->svgfiles[] = $this->assets . '/images/symbols/grandvision.svg'; $cdir = $this->wdir . '/commerce/'; $file = $cdir . $this->book->parametres->basketReferences; - $this->config->basketReferences = wsUtil::excelToArrayKeyVars($file, 'Excel2007', true); + $refs = wsUtil::excelToArrayKeyVars($file, 'Excel2007', true); + $this->config->basketReferences = []; + foreach ($refs as $ean => $ref) { + $this->config->basketReferences[$ean] = $ref; + $this->config->basketReferences[$ean]['angle_url'] = base64_encode(file_get_contents($this->wdir . '/commerce/opt/' . $ean . '-angle.jpg')); + } $odir = $cdir . '/opt/'; if (!file_exists($odir)) { -- 2.39.5