N
N
NakedFace2015-12-24 15:09:18
PHP
NakedFace, 2015-12-24 15:09:18

How to add a catalog item to the comparison table?

Hello!
I can't figure out the comparison table. Google is silent, or I'm a fool I can not understand.
There is a component Comparison Table
Code

<?$APPLICATION->IncludeComponent(
   "bitrix:catalog.compare.result",
   "",
   Array(
      "ACTION_VARIABLE" => "action",
      "AJAX_MODE" => "N",
      "AJAX_OPTION_ADDITIONAL" => "",
      "AJAX_OPTION_HISTORY" => "N",
      "AJAX_OPTION_JUMP" => "N",
      "AJAX_OPTION_STYLE" => "Y",
      "BASKET_URL" => "/personal/basket.php",
      "COMPONENT_TEMPLATE" => ".default",
      "DETAIL_URL" => "",
      "DISPLAY_ELEMENT_SELECT_BOX" => "N",
      "ELEMENT_SORT_FIELD" => "sort",
      "ELEMENT_SORT_FIELD_BOX" => "name",
      "ELEMENT_SORT_FIELD_BOX2" => "id",
      "ELEMENT_SORT_ORDER" => "asc",
      "ELEMENT_SORT_ORDER_BOX" => "asc",
      "ELEMENT_SORT_ORDER_BOX2" => "desc",
      "FIELD_CODE" => array(),
      "IBLOCK_ID" => "15",
      "IBLOCK_TYPE" => "aspro_allcorp_catalog",
      "NAME" => "CATALOG_COMPARE_LIST",
      "PRICE_CODE" => array(),
      "PRICE_VAT_INCLUDE" => "Y",
      "PRODUCT_ID_VARIABLE" => "id",
      "PROPERTY_CODE" => array("BAZOVAYA","",""),
      "SECTION_ID_VARIABLE" => "SECTION_ID",
      "SHOW_PRICE_COUNT" => "1",
      "TEMPLATE_THEME" => "blue",
      "USE_PRICE_COUNT" => "N"
   )
);?><br>

And there is a component List of catalog items to be compared:
Code
<?$APPLICATION->IncludeComponent(
   "bitrix:catalog.compare.result",
   "",
   Array(
      "ACTION_VARIABLE" => "action",
      "AJAX_MODE" => "N",
      "AJAX_OPTION_ADDITIONAL" => "",
      "AJAX_OPTION_HISTORY" => "N",
      "AJAX_OPTION_JUMP" => "N",
      "AJAX_OPTION_STYLE" => "Y",
      "BASKET_URL" => "/personal/basket.php",
      "COMPONENT_TEMPLATE" => ".default",
      "DETAIL_URL" => "",
      "DISPLAY_ELEMENT_SELECT_BOX" => "N",
      "ELEMENT_SORT_FIELD" => "sort",
      "ELEMENT_SORT_FIELD_BOX" => "name",
      "ELEMENT_SORT_FIELD_BOX2" => "id",
      "ELEMENT_SORT_ORDER" => "asc",
      "ELEMENT_SORT_ORDER_BOX" => "asc",
      "ELEMENT_SORT_ORDER_BOX2" => "desc",
      "FIELD_CODE" => array(),
      "IBLOCK_ID" => "15",
      "IBLOCK_TYPE" => "aspro_allcorp_catalog",
      "NAME" => "CATALOG_COMPARE_LIST",
      "PRICE_CODE" => array(),
      "PRICE_VAT_INCLUDE" => "Y",
      "PRODUCT_ID_VARIABLE" => "id",
      "PROPERTY_CODE" => array("BAZOVAYA","",""),
      "SECTION_ID_VARIABLE" => "SECTION_ID",
      "SHOW_PRICE_COUNT" => "1",
      "TEMPLATE_THEME" => "blue",
      "USE_PRICE_COUNT" => "N"
   )
);?><br>

Tell me how they differ and how to add elements for comparison there?
Thanks in advance

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question