Guest User

Untitled

a guest
Dec 3rd, 2019
121
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $elementID = $APPLICATION->IncludeComponent(
  2. "bitrix:catalog.element",
  3. "catalog",
  4. array(
  5. "IBLOCK_TYPE" => $arParams["IBLOCK_TYPE"],
  6. "IBLOCK_ID" => $arParams["IBLOCK_ID"],
  7. "PROPERTY_CODE" => $arParams["DETAIL_PROPERTY_CODE"],
  8. "META_KEYWORDS" => $arParams["DETAIL_META_KEYWORDS"],
  9. "META_DESCRIPTION" => $arParams["DETAIL_META_DESCRIPTION"],
  10. "BROWSER_TITLE" => $arParams["DETAIL_BROWSER_TITLE"],
  11. "SET_CANONICAL_URL" => $arParams["DETAIL_SET_CANONICAL_URL"],
  12. "BASKET_URL" => $arParams["BASKET_URL"],
  13. "ACTION_VARIABLE" => $arParams["ACTION_VARIABLE"],
  14. "PRODUCT_ID_VARIABLE" => $arParams["PRODUCT_ID_VARIABLE"],
  15. "SECTION_ID_VARIABLE" => $arParams["SECTION_ID_VARIABLE"],
  16. "CHECK_SECTION_ID_VARIABLE" => (isset($arParams["DETAIL_CHECK_SECTION_ID_VARIABLE"]) ? $arParams["DETAIL_CHECK_SECTION_ID_VARIABLE"] : ''),
  17. "PRODUCT_QUANTITY_VARIABLE" => $arParams["PRODUCT_QUANTITY_VARIABLE"],
  18. "PRODUCT_PROPS_VARIABLE" => $arParams["PRODUCT_PROPS_VARIABLE"],
  19. "CACHE_TYPE" => $cache,
  20. "CACHE_TIME" => $arParams["CACHE_TIME"],
  21. "CACHE_GROUPS" => $arParams["CACHE_GROUPS"],
  22. "SET_TITLE" => $arParams["SET_TITLE"],
  23. "SET_LAST_MODIFIED" => $arParams["SET_LAST_MODIFIED"],
  24. "MESSAGE_404" => $arParams["MESSAGE_404"],
  25. "SET_STATUS_404" => $arParams["SET_STATUS_404"],
  26. "SHOW_404" => $arParams["SHOW_404"],
  27. "FILE_404" => $arParams["FILE_404"],
  28. "PRICE_CODE" => $arParams["PRICE_CODE"],
  29. "USE_PRICE_COUNT" => $arParams["USE_PRICE_COUNT"],
  30. "SHOW_PRICE_COUNT" => $arParams["SHOW_PRICE_COUNT"],
  31. "PRICE_VAT_INCLUDE" => $arParams["PRICE_VAT_INCLUDE"],
  32. "PRICE_VAT_SHOW_VALUE" => $arParams["PRICE_VAT_SHOW_VALUE"],
  33. "USE_PRODUCT_QUANTITY" => $arParams['USE_PRODUCT_QUANTITY'],
  34. "PRODUCT_PROPERTIES" => $arParams["PRODUCT_PROPERTIES"],
  35. "ADD_PROPERTIES_TO_BASKET" => (isset($arParams["ADD_PROPERTIES_TO_BASKET"]) ? $arParams["ADD_PROPERTIES_TO_BASKET"] : ''),
  36. "PARTIAL_PRODUCT_PROPERTIES" => (isset($arParams["PARTIAL_PRODUCT_PROPERTIES"]) ? $arParams["PARTIAL_PRODUCT_PROPERTIES"] : ''),
  37. "LINK_IBLOCK_TYPE" => $arParams["LINK_IBLOCK_TYPE"],
  38. "LINK_IBLOCK_ID" => $arParams["LINK_IBLOCK_ID"],
  39. "LINK_PROPERTY_SID" => $arParams["LINK_PROPERTY_SID"],
  40. "LINK_ELEMENTS_URL" => $arParams["LINK_ELEMENTS_URL"],
  41.  
  42. "OFFERS_CART_PROPERTIES" => $arParams["OFFERS_CART_PROPERTIES"],
  43. "OFFERS_FIELD_CODE" => $arParams["DETAIL_OFFERS_FIELD_CODE"],
  44. "OFFERS_PROPERTY_CODE" => $arParams["DETAIL_OFFERS_PROPERTY_CODE"],
  45. "OFFERS_SORT_FIELD" => $arParams["OFFERS_SORT_FIELD"],
  46. "OFFERS_SORT_ORDER" => $arParams["OFFERS_SORT_ORDER"],
  47. "OFFERS_SORT_FIELD2" => $arParams["OFFERS_SORT_FIELD2"],
  48. "OFFERS_SORT_ORDER2" => $arParams["OFFERS_SORT_ORDER2"],
  49.  
  50. "ELEMENT_ID" => $arResult["VARIABLES"]["ELEMENT_ID"],
  51. "ELEMENT_CODE" => $arResult["VARIABLES"]["ELEMENT_CODE"],
  52. "SECTION_ID" => $arResult["VARIABLES"]["SECTION_ID"],
  53. "SECTION_CODE" => $arResult["VARIABLES"]["SECTION_CODE"],
  54. "SECTION_URL" => $arResult["FOLDER"].$arResult["URL_TEMPLATES"]["section"],
  55. "DETAIL_URL" => $arResult["FOLDER"].$arResult["URL_TEMPLATES"]["element"],
  56. 'CONVERT_CURRENCY' => $arParams['CONVERT_CURRENCY'],
  57. 'CURRENCY_ID' => $arParams['CURRENCY_ID'],
  58. 'HIDE_NOT_AVAILABLE' => $arParams["HIDE_NOT_AVAILABLE"],
  59. 'USE_ELEMENT_COUNTER' => $arParams['USE_ELEMENT_COUNTER'],
  60. 'SHOW_DEACTIVATED' => $arParams['SHOW_DEACTIVATED'],
  61. "USE_MAIN_ELEMENT_SECTION" => $arParams["USE_MAIN_ELEMENT_SECTION"],
  62.  
  63. 'ADD_PICT_PROP' => $arParams['ADD_PICT_PROP'],
  64. 'LABEL_PROP' => $arParams['LABEL_PROP'],
  65. 'OFFER_ADD_PICT_PROP' => $arParams['OFFER_ADD_PICT_PROP'],
  66. 'OFFER_TREE_PROPS' => $arParams['OFFER_TREE_PROPS'],
  67. 'PRODUCT_SUBSCRIPTION' => $arParams['PRODUCT_SUBSCRIPTION'],
  68. 'SHOW_DISCOUNT_PERCENT' => $arParams['SHOW_DISCOUNT_PERCENT'],
  69. 'SHOW_OLD_PRICE' => $arParams['SHOW_OLD_PRICE'],
  70. 'SHOW_MAX_QUANTITY' => $arParams['DETAIL_SHOW_MAX_QUANTITY'],
  71. 'MESS_BTN_BUY' => $arParams['MESS_BTN_BUY'],
  72. 'MESS_BTN_ADD_TO_BASKET' => $arParams['MESS_BTN_ADD_TO_BASKET'],
  73. 'MESS_BTN_SUBSCRIBE' => $arParams['MESS_BTN_SUBSCRIBE'],
  74. 'MESS_BTN_COMPARE' => $arParams['MESS_BTN_COMPARE'],
  75. 'MESS_NOT_AVAILABLE' => $arParams['MESS_NOT_AVAILABLE'],
  76. 'USE_VOTE_RATING' => $arParams['DETAIL_USE_VOTE_RATING'],
  77. 'VOTE_DISPLAY_AS_RATING' => (isset($arParams['DETAIL_VOTE_DISPLAY_AS_RATING']) ? $arParams['DETAIL_VOTE_DISPLAY_AS_RATING'] : ''),
  78. 'USE_COMMENTS' => $arParams['DETAIL_USE_COMMENTS'],
  79. 'BLOG_USE' => (isset($arParams['DETAIL_BLOG_USE']) ? $arParams['DETAIL_BLOG_USE'] : ''),
  80. 'BLOG_URL' => (isset($arParams['DETAIL_BLOG_URL']) ? $arParams['DETAIL_BLOG_URL'] : ''),
  81. 'BLOG_EMAIL_NOTIFY' => (isset($arParams['DETAIL_BLOG_EMAIL_NOTIFY']) ? $arParams['DETAIL_BLOG_EMAIL_NOTIFY'] : ''),
  82. 'VK_USE' => (isset($arParams['DETAIL_VK_USE']) ? $arParams['DETAIL_VK_USE'] : ''),
  83. 'VK_API_ID' => (isset($arParams['DETAIL_VK_API_ID']) ? $arParams['DETAIL_VK_API_ID'] : 'API_ID'),
  84. 'FB_USE' => (isset($arParams['DETAIL_FB_USE']) ? $arParams['DETAIL_FB_USE'] : ''),
  85. 'FB_APP_ID' => (isset($arParams['DETAIL_FB_APP_ID']) ? $arParams['DETAIL_FB_APP_ID'] : ''),
  86. 'BRAND_USE' => (isset($arParams['DETAIL_BRAND_USE']) ? $arParams['DETAIL_BRAND_USE'] : 'N'),
  87. 'BRAND_PROP_CODE' => (isset($arParams['DETAIL_BRAND_PROP_CODE']) ? $arParams['DETAIL_BRAND_PROP_CODE'] : ''),
  88. 'DISPLAY_NAME' => (isset($arParams['DETAIL_DISPLAY_NAME']) ? $arParams['DETAIL_DISPLAY_NAME'] : ''),
  89. 'ADD_DETAIL_TO_SLIDER' => (isset($arParams['DETAIL_ADD_DETAIL_TO_SLIDER']) ? $arParams['DETAIL_ADD_DETAIL_TO_SLIDER'] : ''),
  90. 'TEMPLATE_THEME' => (isset($arParams['TEMPLATE_THEME']) ? $arParams['TEMPLATE_THEME'] : ''),
  91. "ADD_SECTIONS_CHAIN" => (isset($arParams["ADD_SECTIONS_CHAIN"]) ? $arParams["ADD_SECTIONS_CHAIN"] : ''),
  92. "ADD_ELEMENT_CHAIN" => (isset($arParams["ADD_ELEMENT_CHAIN"]) ? $arParams["ADD_ELEMENT_CHAIN"] : ''),
  93. "DISPLAY_PREVIEW_TEXT_MODE" => (isset($arParams['DETAIL_DISPLAY_PREVIEW_TEXT_MODE']) ? $arParams['DETAIL_DISPLAY_PREVIEW_TEXT_MODE'] : ''),
  94. "DETAIL_PICTURE_MODE" => (isset($arParams['DETAIL_DETAIL_PICTURE_MODE']) ? $arParams['DETAIL_DETAIL_PICTURE_MODE'] : ''),
  95. 'ADD_TO_BASKET_ACTION' => $arParams['DETAIL_ADD_TO_BASKET_ACTION'],
  96. 'SHOW_CLOSE_POPUP' => isset($arParams['COMMON_SHOW_CLOSE_POPUP']) ? $arParams['COMMON_SHOW_CLOSE_POPUP'] : '',
  97. 'DISPLAY_COMPARE' => (isset($arParams['USE_COMPARE']) ? $arParams['USE_COMPARE'] : ''),
  98. 'COMPARE_PATH' => $arResult['FOLDER'].$arResult['URL_TEMPLATES']['compare'],
  99. 'SHOW_BASIS_PRICE' => (isset($arParams['DETAIL_SHOW_BASIS_PRICE']) ? $arParams['DETAIL_SHOW_BASIS_PRICE'] : 'Y'),
  100. 'BACKGROUND_IMAGE' => (isset($arParams['DETAIL_BACKGROUND_IMAGE']) ? $arParams['DETAIL_BACKGROUND_IMAGE'] : ''),
  101. "CURRENT_CURRENCY_CODE" => $arParams["CURRENT_CURRENCY_CODE"]
  102. ),
  103. $component
  104. );
  105.  
  106.  
  107. $GLOBALS['arrCollectionFilter'] = array(
  108. '!ID' => $elementID,
  109. 'PROPERTY_COLLECTION' => $arResult['COLLECTION_NAME']
  110. );
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×