V
V
Valery Vitalievich2020-09-04 13:43:23
opencart
Valery Vitalievich, 2020-09-04 13:43:23

How to display the main image in additional opencart 3?

There is a photo output block in the product card, tell me how to make the main photo also be displayed in additional

<div class="shop-detail_img">
          {% if thumb or images %}
            <div class="big-img">
            {% if thumb %}
            <li><a class="big-img_block" href="{{ popup }}" title="{{ heading_title }}"><img id="imgup" src="{{ popup }}" title="{{ heading_title }}" alt="{{ heading_title }}" /></a></li>
            {% endif %}
            </div>
            <div class="slide-img">
            {% if images %}
            {% for image in images %}
            <li class="slide-img_block block-img-w"><a href="{{ image.popup }}" title="{{ heading_title }}" onclick="swap(this); return false;"> <img src="{{ image.popup }}" title="{{ heading_title }}" alt="{{ heading_title }}" /></a></li>
            {% endfor %}
            {% endif %}
            </div>
            {% endif %}
                    </div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VVCh, 2020-09-07
@VVCh

1. you need to make
, for example, thumb_small for the main one with thumb sizes for additional images
2 before the for loop,
output According to your code p.1. you can skip
%7B%7B%20popup%20%7D%7D

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question