$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) {