A problem - there is a .phtml file in which the value of the function ($ code) is defined and displayed in it. Also in this file the gallery is called (in the modal window, prettyPhoto plugin). You need to get the value of this $ code in a modal window and paste it into the appropriate place. 1. Code from .phtml
if (ISSET($prod['brands']) AND $prod['brands'] != NULL) { $attributes = $prod->getAttributes(); $optId = $prod->getData('brands'); $attributeAddLabel = $attributes['brands']->getFrontend()->getAttribute()->getSource(); foreach ($attributeAddLabel->getAllOptions() AS $option) { if ($option['value'] == $optId) { $code = $option['option_code']; } } } else { $code = ''; - Part of the code from the prettyPhoto plugin
markup: '<div class="pp_pic_holder"> \ <div class="ppt"> </div> \ <div class="pp_top"> \ <div class="pp_left"></div> \ <div class="pp_middle"></div> \ <div class="pp_right"></div> \ </div> \ <div class="pp_content_container"> \ <div class="pp_left"> \ <div class="pp_right"> \ <div class="pp_content"> \ <div class="pp_loaderIcon"></div> \ <div class="pp_fade"> \ <a href="#" class="pp_expand" title="Expand the image">Expand</a> \ <div class="manufacturer" style="bottom:30px;"></div>\ <div id="fa-arrows"></div> \ <div class="pp_details" > \ The value of $ code is a string that is inserted as a class in
<div class="manufacturer {Сюда} " style="bottom:30px;"></div>\ I ask for help, because not quite an expert in js.