From: vincent@cubedesigners.com Date: Mon, 26 Oct 2020 16:16:46 +0000 (+0000) Subject: wip #3961 @2 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=8c1702c15c6a87e576d6c0cd34c9309bf0280d1a;p=cubeextranet.git wip #3961 @2 --- 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 196cadb56..16ed160c3 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -418,6 +418,14 @@ class wsHTML5Compiler $this->addVideoJs(); $this->config->basketReferences = wsUtil::excelToArrayKeyVars($this->wdir . '/commerce/' . $this->book->parametres->basketReferences); + + wsLinks::getLinksAndRulersFromFile($this->book_id, $links, $rulers); + foreach ($links as $link) { + if ($link['type'] == '12' && isset($this->config->basketReferences[$link['to']])) { + $this->config->basketReferences[$link['to']]['zoom_image'] = 'data/links/zoom_' . $link['uid'] . '.jpg'; + } + } + $this->config->product_zoom_references = []; $files = ['360°', 'Image supplémentaire', 'Fiche technique']; foreach ($this->config->basketReferences as $ref => $data) {