Answer the question
In order to leave comments, you need to log in
How to display additional photos in the detailed description of the product?
Everyone loves the day.
There is such a code
<div class="item-card__slider">
<div class="swiper-container gallery-top">
<div class="swiper-wrapper">
<?foreach($arResult['MORE_PHOTO'] as $key => $img):?>
<?$img_resize_path = CFile::ResizeImageGet(
$arResult[PROPERTIES][MORE_PHOTO][VALUE][0],
BX_RESIZE_IMAGE_PROPORTIONAL
);
?>
<div class="swiper-slide">
<img alt="" src="<?=$img_resize_path['src']?>"/>
</div>
<? endforeach?>
</div>
</div>
<div class="swiper-container gallery-thumbs">
<div class="swiper-wrapper">
<?foreach($arResult['MORE_PHOTO'] as $key => $img):?>
<?$img_resize_path = CFile::ResizeImageGet(
$arResult[PROPERTIES][MORE_PHOTO][VALUE][0],
BX_RESIZE_IMAGE_PROPORTIONAL
);
?>
<div class="swiper-slide">
<img alt="" src="<?=$img_resize_path['src']?>"/>
</div>
<? endforeach?>
</div>
</div>
<div class="swiper-pagination"></div>
<div class="swiper-button-next"></div>
<div class="swiper-button-prev"></div>
</div>
Answer the question
In order to leave comments, you need to log in
there are several errors here:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question