U
U
unlik2015-05-27 14:04:30
CMS
unlik, 2015-05-27 14:04:30

Additional images in Bitrix?

I want to make additional images for the product as on the site www.floristgump.ru/catalog/bukety/detail/pinki when you click on an additional image, fancybox opens and the main one is not in the list of additional ones. And you need to make sure that under the main picture there is a list of all, both the main and additional ones. And when you click on any of them, it was displayed in place of the main one. Who faced?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tuxx, 2015-05-27
@tuxx

What's stopping you from adding a link to the main image in result_modifier.php to the beginning of the array of additional images? for example

$arResult['MORE_PHOTO'] = array_merge(array('SRC'=>$arResult['DETAIL_PICTURE']), $arResult['MORE_PHOTO']);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question