Answer the question
In order to leave comments, you need to log in
How to display additional images on the product detail page from a property in the regular (.default) catalog.element component?
added
if( $arResult['MORE_PHOTO_COUNT'] = sizeof( $arResult["PROPERTIES"]["MORE_PHOTO"]["VALUE"] ) ) {
$showSliderControls = true;
foreach($arResult["PROPERTIES"]["MORE_PHOTO"]["VALUE"] as $FILE_ID) {
if( is_array($FILE = CFile::GetFileArray($FILE_ID)) ) {
array_push($actualItem["MORE_PHOTO"], $FILE);
}
}
}
Answer the question
In order to leave comments, you need to log in
My Crutch Recipe:
After
else
{
$actualItem = $arResult;
$showSliderControls = $arResult['MORE_PHOTO_COUNT'] > 1;
}
if( $arResult['MORE_PHOTO_COUNT'] = sizeof( $arResult["PROPERTIES"]["MORE_PHOTO"]["VALUE"] ) ) {
$showSliderControls = true;
foreach($arResult["PROPERTIES"]["MORE_PHOTO"]["VALUE"] as $FILE_ID) {
if( is_array($FILE = CFile::GetFileArray($FILE_ID)) ) {
array_push($actualItem["MORE_PHOTO"], $FILE);
}
}
$arResult['MORE_PHOTO'] = $actualItem["MORE_PHOTO"];
$arResult['MORE_PHOTO_COUNT'] = sizeof( $arResult['MORE_PHOTO'] );
}
MORE_PHOTO ( $arResult["PROPERTIES"]["MORE_PHOTO"]["VALUE"] )
Property code with pictures.
Is the problem on the server side? If the slider does not scroll, you need to look in the browser console. Perhaps there are some JS errors.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question