Afanasoff Posted September 30, 2024 at 10:33 AM Share Posted September 30, 2024 at 10:33 AM Подскажите решение или модуль вывода доп. миниатюр товаров вертикальной каруселью. 0 Quote Link to comment Share on other sites More sharing options...
Blast Posted September 30, 2024 at 02:23 PM Share Posted September 30, 2024 at 02:23 PM В 30.09.2024 в 13:33, Afanasoff сказал: Подскажите решение или модуль вывода доп. миниатюр товаров вертикальной каруселью. не будет для такого модулей. вопрос чисто верстки, зачастую с прикручиванием swiper или slick. Может быть встроено в какой-то шаблон. например практически готовый кусок https://gist.github.com/LuisGMoralesRaya/f09ac47228902459046c480eb1a5d049 демонстрация работы https://codepen.io/rogerkuik/pen/abZOLXr только в html вставить цикл по превьюхам и поправить ксс 1 Quote Link to comment Share on other sites More sharing options...
Tom Posted September 30, 2024 at 06:36 PM Share Posted September 30, 2024 at 06:36 PM В тройке можно немного попроще. catalog/view/theme/default/template/product/product.twig Найти весь блок картинок {% if thumb or images %} <ul class="thumbnails"> {% if thumb %} <li><a class="thumbnail" href="{{ popup }}" title="{{ heading_title }}"><img src="{{ thumb }}" title="{{ heading_title }}" alt="{{ heading_title }}" /></a></li> {% endif %} {% if images %} {% for image in images %} <li class="image-additional"><a class="thumbnail" href="{{ image.popup }}" title="{{ heading_title }}"> <img src="{{ image.thumb }}" title="{{ heading_title }}" alt="{{ heading_title }}" /></a></li> {% endfor %} {% endif %} </ul> {% endif %} И заменить со списка ul-li частично на блоки col. Что то типа <div class="row thumbnails"> {% if images %} <div class="col-sm-2"> <ul class="thumbnails-list"> {% for image in images %} <li> <a class="thumbnail" href="{{ image.popup }}" title="{{ heading_title }}"> <img src="{{ image.thumb }}" title="{{ heading_title }}" alt="{{ heading_title }}" /> </a> </li> {% endfor %} </ul> </div> {% endif %} <div class="{{ images ? 'col-sm-10' : 'col-sm-12' }}"> {% if thumb %} <a class="thumbnail main-image-container" href="{{ popup }}" title="{{ heading_title }}"> <img src="{{ thumb }}" title="{{ heading_title }}" alt="{{ heading_title }}" id="main-image" /> </a> {% endif %} </div> </div> Ну и перед {{ footer }} , так например <style> .thumbnails-list {list-style: none;padding: 0;margin: 0;overflow-y: auto;} .thumbnails li {margin-bottom: 10px;} </style> <script type="text/javascript"> $(document).ready(function() { var mainImageHeight = $('.main-image-container').height(); $('.thumbnails-list').height(mainImageHeight); }); </script> 2 Quote Link to comment Share on other sites More sharing options...
Afanasoff Posted September 30, 2024 at 06:53 PM Author Share Posted September 30, 2024 at 06:53 PM В 30.09.2024 в 21:36, Tom сказал: В тройке можно немного попроще. catalog/view/theme/default/template/product/product.twig Найти весь блок картинок {% if thumb or images %} <ul class="thumbnails"> {% if thumb %} <li><a class="thumbnail" href="{{ popup }}" title="{{ heading_title }}"><img src="{{ thumb }}" title="{{ heading_title }}" alt="{{ heading_title }}" /></a></li> {% endif %} {% if images %} {% for image in images %} <li class="image-additional"><a class="thumbnail" href="{{ image.popup }}" title="{{ heading_title }}"> <img src="{{ image.thumb }}" title="{{ heading_title }}" alt="{{ heading_title }}" /></a></li> {% endfor %} {% endif %} </ul> {% endif %} И заменить со списка ul-li частично на блоки col. Что то типа <div class="row thumbnails"> {% if images %} <div class="col-sm-2"> <ul class="thumbnails-list"> {% for image in images %} <li> <a class="thumbnail" href="{{ image.popup }}" title="{{ heading_title }}"> <img src="{{ image.thumb }}" title="{{ heading_title }}" alt="{{ heading_title }}" /> </a> </li> {% endfor %} </ul> </div> {% endif %} <div class="{{ images ? 'col-sm-10' : 'col-sm-12' }}"> {% if thumb %} <a class="thumbnail main-image-container" href="{{ popup }}" title="{{ heading_title }}"> <img src="{{ thumb }}" title="{{ heading_title }}" alt="{{ heading_title }}" id="main-image" /> </a> {% endif %} </div> Ну и перед {{ footer }} , так например <style> .thumbnails-list {list-style: none;padding: 0;margin: 0;overflow-y: auto;} .thumbnails li {margin-bottom: 10px;} </style> <script type="text/javascript"> $(document).ready(function() { var mainImageHeight = $('.main-image-container').height(); $('.thumbnails-list').height(mainImageHeight); }); </script> Мне для 2.1 нужно. Нашел пару бесплатных модификаторов - но там без карусели. 0 Quote Link to comment Share on other sites More sharing options...
Tom Posted September 30, 2024 at 06:54 PM Share Posted September 30, 2024 at 06:54 PM Я показал пример. Осталось его внедрить для tpl. У меня нет под рукой такой старой версии , да и у форума сборка начиная с тройки. 1 Quote Link to comment Share on other sites More sharing options...
Afanasoff Posted September 30, 2024 at 06:55 PM Author Share Posted September 30, 2024 at 06:55 PM (edited) В 30.09.2024 в 21:54, Tom сказал: Я показал пример. Осталось его внедрить для tpl. Да спасибо - попробую. Edited October 1, 2024 at 08:36 AM by Afanasoff 0 Quote Link to comment Share on other sites More sharing options...
Afanasoff Posted October 1, 2024 at 08:35 AM Author Share Posted October 1, 2024 at 08:35 AM <div class="left product-image thumbnails"> <?php if ($thumb || $images) { ?> <div class="col-sm-2" style="padding-right: 0px;"> <ul class="thumbnails-list"> <?php if ($images) { ?> <?php foreach ($images as $image) { ?> <li> <a class="elevatezoom-gallery thumbnail" href="<?php echo $image['popup']; ?>" title="<?php echo $heading_title; ?>"> <img src="<?php echo $image['thumb']; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" /> </a> </li> <?php } ?> <?php } ?> </ul> </div> <?php } ?> <div class="col-sm-10"> <?php if ($thumb) { ?> <a class="elevatezoom-gallery thumbnail main-image-container" href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>"> <img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="main-image" /> </a> <?php } ?> </div> </div> <style> .thumbnails-list {list-style: none;padding: 0;margin: 0;overflow-y: auto;} .thumbnails li {margin-bottom: 10px;} </style> <script type="text/javascript"> $(document).ready(function() { var mainImageHeight = $('.main-image-container').height(); $('.thumbnails-list').height(mainImageHeight); }); </script> Для 2.1 Может кому пригодится. 0 Quote Link to comment Share on other sites More sharing options...
Tom Posted October 5, 2024 at 01:07 PM Share Posted October 5, 2024 at 01:07 PM Vertical Images on Product Page.ocmod.zip 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.