From 8c1702c15c6a87e576d6c0cd34c9309bf0280d1a Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 26 Oct 2020 16:16:46 +0000 Subject: [PATCH] wip #3961 @2 --- inc/ws/Util/html5/master/class.ws.html5.compiler.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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) { -- 2.39.5