S
S
s0pran02021-02-05 05:03:53
JavaScript
s0pran0, 2021-02-05 05:03:53

How to load two products in one owl-carousel cell?

In general, there is a task to make just such a carousel.
601ca3db928c9444292729.png
It turns out that in each cell of the carousel, 2 products are obtained, here is the code for the card template

<div class="block-products-carousel__slider">
        <div class="block-products-carousel__preloader"></div>
        <div class="owl-carousel">
                <div class="block-products-carousel__column">  <!--  ячейка карусели -->
                        <div class="block-products-carousel__cell"></div>    <!--  карточка товара -->
                        <div class="block-products-carousel__cell"></div>    <!--  карточка товара -->
                </div>
                <div class="block-products-carousel__column">     <!--  ячейка карусели -->
                        <div class="block-products-carousel__cell"></div>   <!--  карточка товара -->
                        <div class="block-products-carousel__cell"></div>   <!--  карточка товара -->
                 </div>  
         </div>
 </div>


The question is how to load 2 products into one cell in Opencart, the goods are loaded in a cycle and it turns out either all into one cell, or one per cell, I can’t catch up with how to do 2

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jupiter Max, 2021-02-05
@s0pran0

maybe this will fit

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question