Авторизация
Корзина
0
Скриншоты
Описание
Технические данные
- Опубликовано:
- 26.02.2021
- Версия:
- 1.0.0
- Установлено:
- Менее 50 раз
- Подходящие редакции:
- «Малый бизнес», «Бизнес»
- Адаптивность:
- Нет
- Поддержка Композита:
- Нет
- Совместимо с Сайты24
- Нет
- Совместимо с PHP 8.1
- Нет
Пользовательское соглашение
Описание
Модуль выводит товары близкие по цене в карточке товара с помощью компонента icmark:similar.products.
Отзывы ()
Пока что нет отзывов.
Обсуждения (0)
Здесь пока никто ничего не написал. Будьте первым.
Установка
<?
/*
* Пример подключения компонета в шаблоне детальной страницы товара
* /bitrix/components/bitrix/catalog.element/templates/bootstrap_v4/template.php
*/
$APPLICATION->IncludeComponent(
"icmark:similar.products",
".default",
Array(
"ACTION_VARIABLE" => $arParams['ACTION_VARIABLE'],
"ADD_PICT_PROP" => (isset($arParams['ADD_PICT_PROP']) ? $arParams['ADD_PICT_PROP'] : ''),
"ADD_PROPERTIES_TO_BASKET" => "Y",
"ADD_SECTIONS_CHAIN" => "N",
"ADD_TO_BASKET_ACTION" => "ADD",
"AJAX_MODE" => $arParams['AJAX_MODE'],
"AJAX_OPTION_ADDITIONAL" => "",
"AJAX_OPTION_HISTORY" => "N",
"AJAX_OPTION_JUMP" => "N",
"AJAX_OPTION_STYLE" => "Y",
"BACKGROUND_IMAGE" => "-",
"BASKET_URL" => $arParams['BASKET_URL'],
"BROWSER_TITLE" => "-",
"CACHE_FILTER" => "N",
"CACHE_GROUPS" => $arParams['CACHE_GROUPS'],
"CACHE_TIME" => $arParams['CACHE_TIME'],
"CACHE_TYPE" => $arParams['CACHE_TYPE'],
"COMPATIBLE_MODE" => "Y",
"COMPOSITE_FRAME_MODE" => "A",
"COMPOSITE_FRAME_TYPE" => "AUTO",
"CONVERT_CURRENCY" => $arParams['CONVERT_CURRENCY'],
"DETAIL_URL" => $arParams['DETAIL_URL'],
"DISABLE_INIT_JS_IN_COMPONENT" => "N",
"DISPLAY_BOTTOM_PAGER" => "Y",
"DISPLAY_COMPARE" => "N",
"DISPLAY_TOP_PAGER" => "N",
"ELEMENT_SORT_FIELD" => "sort",
"ELEMENT_SORT_FIELD2" => "id",
"ELEMENT_SORT_ORDER" => "asc",
"ELEMENT_SORT_ORDER2" => "desc",
"ENLARGE_PRODUCT" => "STRICT",
"FILTER_NAME" => "",
"HIDE_NOT_AVAILABLE" => "Y",
"IBLOCK_ID" => $arParams['IBLOCK_ID'],
"IBLOCK_TYPE" => $arParams['IBLOCK_TYPE'],
"INCLUDE_SUBSECTIONS" => "Y",
"LABEL_PROP" => (isset($arParams['LABEL_PROP']) ? $arParams['LABEL_PROP'] : ''),
"LAZY_LOAD" => "N",
"LINE_ELEMENT_COUNT" => "1",
"LOAD_ON_SCROLL" => "N",
"MESSAGE_404" => "",
"MESS_BTN_ADD_TO_BASKET" => "В корзину",
"MESS_BTN_BUY" => "Купить",
"MESS_BTN_COMPARE" => "Сравнить",
"MESS_BTN_DETAIL" => "Подробнее",
"MESS_BTN_SUBSCRIBE" => "Подписаться",
"MESS_NOT_AVAILABLE" => "Нет в наличии",
"META_DESCRIPTION" => "-",
"META_KEYWORDS" => "-",
"OFFERS_CART_PROPERTIES" => array(),
"OFFERS_FIELD_CODE" => $arParams['OFFERS_FIELD_CODE'],
"OFFERS_LIMIT" => "2",
"OFFERS_PROPERTY_CODE" => $arParams['OFFERS_PROPERTY_CODE'],
"OFFERS_SORT_FIELD" => "sort",
"OFFERS_SORT_FIELD2" => "id",
"OFFERS_SORT_ORDER" => "asc",
"OFFERS_SORT_ORDER2" => "desc",
"PAGER_BASE_LINK_ENABLE" => "N",
"PAGER_DESC_NUMBERING" => "N",
"PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
"PAGER_SHOW_ALL" => "N",
"PAGER_SHOW_ALWAYS" => "N",
"PAGER_TEMPLATE" => ".default",
"PAGER_TITLE" => "Товары",
"PAGE_ELEMENT_COUNT" => "3", //Количество элементов для вывода
"PARTIAL_PRODUCT_PROPERTIES" => "N",
"PRICE_CODE" => $arParams['PRICE_CODE'],
"PRICE_VAT_INCLUDE" => $arParams['PRICE_VAT_INCLUDE'],
"PRODUCT_BLOCKS_ORDER" => "price,props,sku,quantityLimit,quantity,buttons,compare",
"PRODUCT_DISPLAY_MODE" => "N",
"PRODUCT_ID_VARIABLE" => $arParams['PRODUCT_ID_VARIABLE'],
"PRODUCT_PROPERTIES" => array(),
"PRODUCT_PROPS_VARIABLE" => "prop",
"PRODUCT_QUANTITY_VARIABLE" => "quantity",
"PRODUCT_ROW_VARIANTS" => "[{'VARIANT':'2','BIG_DATA':false},{'VARIANT':'2','BIG_DATA':false},{'VARIANT':'2','BIG_DATA':false},{'VARIANT':'2','BIG_DATA':false},{'VARIANT':'2','BIG_DATA':false},{'VARIANT':'2','BIG_DATA':false}]",
"PRODUCT_SUBSCRIPTION" => "N",
"PROPERTY_CODE" => $arParams['PROPERTY_CODE'],
"RCM_PROD_ID" => $arParams["ELEMENT_ID"],
"RCM_TYPE" => "personal",
"SECTION_CODE" => $arParams["SECTION_CODE"], //Символьный код категории (для ЧПУ - обязательны)
"SECTION_ID" => $arParams["SECTION_ID"], //ID категории
"SECTION_ID_VARIABLE" => $arParams['SECTION_ID_VARIABLE'],
"SECTION_URL" => $arParams['SECTION_URL'],
"SECTION_USER_FIELDS" => array("", ""),
"SEF_MODE" => "N",
"SET_BROWSER_TITLE" => "Y",
"SET_LAST_MODIFIED" => "N",
"SET_META_DESCRIPTION" => "Y",
"SET_META_KEYWORDS" => "Y",
"SET_STATUS_404" => "N",
"SET_TITLE" => $arParams['SET_TITLE'],
"SHOW_404" => "N",
"SHOW_ALL_WO_SECTION" => "N",
"SHOW_CLOSE_POPUP" => "N",
"SHOW_DISCOUNT_PERCENT" => (isset($arParams['SHOW_DISCOUNT_PERCENT']) ? $arParams['SHOW_DISCOUNT_PERCENT'] : ''),
"SHOW_FROM_SECTION" => "N",
"SHOW_OLD_PRICE" => "N",
"SHOW_PRICE_COUNT" => $arParams['SHOW_PRICE_COUNT'],
"SHOW_SLIDER" => "Y",
"TEMPLATE_THEME" => (isset($arParams['TEMPLATE_THEME']) ? $arParams['TEMPLATE_THEME'] : ''),
"USE_ENHANCED_ECOMMERCE" => "N",
"USE_MAIN_ELEMENT_SECTION" => "N",
"USE_PRICE_COUNT" => $arParams['USE_PRICE_COUNT'],
"USE_PRODUCT_QUANTITY" => "N",
"ID_ACTIVE_PRODUCT" => $arParams["ELEMENT_ID"], //ID товара (Убирает его из выборки)
"PRICE_ACTIVE_PRODUCT" => $price["BASE_PRICE"], //Цена на которую ориентируется компонент при фильтрации
)
);
?>
/*
* Пример подключения компонета в шаблоне детальной страницы товара
* /bitrix/components/bitrix/catalog.element/templates/bootstrap_v4/template.php
*/
$APPLICATION->IncludeComponent(
"icmark:similar.products",
".default",
Array(
"ACTION_VARIABLE" => $arParams['ACTION_VARIABLE'],
"ADD_PICT_PROP" => (isset($arParams['ADD_PICT_PROP']) ? $arParams['ADD_PICT_PROP'] : ''),
"ADD_PROPERTIES_TO_BASKET" => "Y",
"ADD_SECTIONS_CHAIN" => "N",
"ADD_TO_BASKET_ACTION" => "ADD",
"AJAX_MODE" => $arParams['AJAX_MODE'],
"AJAX_OPTION_ADDITIONAL" => "",
"AJAX_OPTION_HISTORY" => "N",
"AJAX_OPTION_JUMP" => "N",
"AJAX_OPTION_STYLE" => "Y",
"BACKGROUND_IMAGE" => "-",
"BASKET_URL" => $arParams['BASKET_URL'],
"BROWSER_TITLE" => "-",
"CACHE_FILTER" => "N",
"CACHE_GROUPS" => $arParams['CACHE_GROUPS'],
"CACHE_TIME" => $arParams['CACHE_TIME'],
"CACHE_TYPE" => $arParams['CACHE_TYPE'],
"COMPATIBLE_MODE" => "Y",
"COMPOSITE_FRAME_MODE" => "A",
"COMPOSITE_FRAME_TYPE" => "AUTO",
"CONVERT_CURRENCY" => $arParams['CONVERT_CURRENCY'],
"DETAIL_URL" => $arParams['DETAIL_URL'],
"DISABLE_INIT_JS_IN_COMPONENT" => "N",
"DISPLAY_BOTTOM_PAGER" => "Y",
"DISPLAY_COMPARE" => "N",
"DISPLAY_TOP_PAGER" => "N",
"ELEMENT_SORT_FIELD" => "sort",
"ELEMENT_SORT_FIELD2" => "id",
"ELEMENT_SORT_ORDER" => "asc",
"ELEMENT_SORT_ORDER2" => "desc",
"ENLARGE_PRODUCT" => "STRICT",
"FILTER_NAME" => "",
"HIDE_NOT_AVAILABLE" => "Y",
"IBLOCK_ID" => $arParams['IBLOCK_ID'],
"IBLOCK_TYPE" => $arParams['IBLOCK_TYPE'],
"INCLUDE_SUBSECTIONS" => "Y",
"LABEL_PROP" => (isset($arParams['LABEL_PROP']) ? $arParams['LABEL_PROP'] : ''),
"LAZY_LOAD" => "N",
"LINE_ELEMENT_COUNT" => "1",
"LOAD_ON_SCROLL" => "N",
"MESSAGE_404" => "",
"MESS_BTN_ADD_TO_BASKET" => "В корзину",
"MESS_BTN_BUY" => "Купить",
"MESS_BTN_COMPARE" => "Сравнить",
"MESS_BTN_DETAIL" => "Подробнее",
"MESS_BTN_SUBSCRIBE" => "Подписаться",
"MESS_NOT_AVAILABLE" => "Нет в наличии",
"META_DESCRIPTION" => "-",
"META_KEYWORDS" => "-",
"OFFERS_CART_PROPERTIES" => array(),
"OFFERS_FIELD_CODE" => $arParams['OFFERS_FIELD_CODE'],
"OFFERS_LIMIT" => "2",
"OFFERS_PROPERTY_CODE" => $arParams['OFFERS_PROPERTY_CODE'],
"OFFERS_SORT_FIELD" => "sort",
"OFFERS_SORT_FIELD2" => "id",
"OFFERS_SORT_ORDER" => "asc",
"OFFERS_SORT_ORDER2" => "desc",
"PAGER_BASE_LINK_ENABLE" => "N",
"PAGER_DESC_NUMBERING" => "N",
"PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
"PAGER_SHOW_ALL" => "N",
"PAGER_SHOW_ALWAYS" => "N",
"PAGER_TEMPLATE" => ".default",
"PAGER_TITLE" => "Товары",
"PAGE_ELEMENT_COUNT" => "3", //Количество элементов для вывода
"PARTIAL_PRODUCT_PROPERTIES" => "N",
"PRICE_CODE" => $arParams['PRICE_CODE'],
"PRICE_VAT_INCLUDE" => $arParams['PRICE_VAT_INCLUDE'],
"PRODUCT_BLOCKS_ORDER" => "price,props,sku,quantityLimit,quantity,buttons,compare",
"PRODUCT_DISPLAY_MODE" => "N",
"PRODUCT_ID_VARIABLE" => $arParams['PRODUCT_ID_VARIABLE'],
"PRODUCT_PROPERTIES" => array(),
"PRODUCT_PROPS_VARIABLE" => "prop",
"PRODUCT_QUANTITY_VARIABLE" => "quantity",
"PRODUCT_ROW_VARIANTS" => "[{'VARIANT':'2','BIG_DATA':false},{'VARIANT':'2','BIG_DATA':false},{'VARIANT':'2','BIG_DATA':false},{'VARIANT':'2','BIG_DATA':false},{'VARIANT':'2','BIG_DATA':false},{'VARIANT':'2','BIG_DATA':false}]",
"PRODUCT_SUBSCRIPTION" => "N",
"PROPERTY_CODE" => $arParams['PROPERTY_CODE'],
"RCM_PROD_ID" => $arParams["ELEMENT_ID"],
"RCM_TYPE" => "personal",
"SECTION_CODE" => $arParams["SECTION_CODE"], //Символьный код категории (для ЧПУ - обязательны)
"SECTION_ID" => $arParams["SECTION_ID"], //ID категории
"SECTION_ID_VARIABLE" => $arParams['SECTION_ID_VARIABLE'],
"SECTION_URL" => $arParams['SECTION_URL'],
"SECTION_USER_FIELDS" => array("", ""),
"SEF_MODE" => "N",
"SET_BROWSER_TITLE" => "Y",
"SET_LAST_MODIFIED" => "N",
"SET_META_DESCRIPTION" => "Y",
"SET_META_KEYWORDS" => "Y",
"SET_STATUS_404" => "N",
"SET_TITLE" => $arParams['SET_TITLE'],
"SHOW_404" => "N",
"SHOW_ALL_WO_SECTION" => "N",
"SHOW_CLOSE_POPUP" => "N",
"SHOW_DISCOUNT_PERCENT" => (isset($arParams['SHOW_DISCOUNT_PERCENT']) ? $arParams['SHOW_DISCOUNT_PERCENT'] : ''),
"SHOW_FROM_SECTION" => "N",
"SHOW_OLD_PRICE" => "N",
"SHOW_PRICE_COUNT" => $arParams['SHOW_PRICE_COUNT'],
"SHOW_SLIDER" => "Y",
"TEMPLATE_THEME" => (isset($arParams['TEMPLATE_THEME']) ? $arParams['TEMPLATE_THEME'] : ''),
"USE_ENHANCED_ECOMMERCE" => "N",
"USE_MAIN_ELEMENT_SECTION" => "N",
"USE_PRICE_COUNT" => $arParams['USE_PRICE_COUNT'],
"USE_PRODUCT_QUANTITY" => "N",
"ID_ACTIVE_PRODUCT" => $arParams["ELEMENT_ID"], //ID товара (Убирает его из выборки)
"PRICE_ACTIVE_PRODUCT" => $price["BASE_PRICE"], //Цена на которую ориентируется компонент при фильтрации
)
);
?>
Поддержка
Техническую поддержку осуществляет разработчик по email: info@icmark.ru
В теме письма необходимо указать "Решение Битрикс".
В теме письма необходимо указать "Решение Битрикс".