Answer the question
In order to leave comments, you need to log in
How to set several categories categoryId for a product in Bitrix in an xml feed?
What is the essence of the question.
By default, one categoryId goes to the feed
How to submit all linked product categoryIds
...<price>112860</price>
<currencyId>RUB</currencyId>
<categoryId>8468</categoryId>...
<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetTitle("Yandex Market");
//global $arrFilter; $arrFilter = array("!PROPERTY_WF_SALE" => false);
?>
<?global $arrFilter;
$arrFilter = array(
">CATALOG_PRICE_SCALE_1" => 3000, //
array(
"LOGIC" => "OR",
array("PROPERTY_ATT_BRAND" => array(56389)), //
array("ID" => array(12337, 18688)),//
array("SECTION_ID"=>array(882)),//
),
);
?>
<?$APPLICATION->IncludeComponent(
"yandex.market",
".default",
array(
"IBLOCK_TYPE" => "",
"IBLOCK_ID_IN" => array(
0 => "0",
),
"IBLOCK_ID_EX" => array(
0 => "0",
),
"IBLOCK_SECTION" => array(
0 => "362",
1 => "363",
2 => "364",
3 => "365",
4 => "366",
5 => "367",
6 => "368",
7 => "369",
8 => "370",
9 => "371",
10 => "372",
11 => "373",
12 => "374",
13 => "375",
14 => "376",
15 => "377",
16 => "378",
17 => "379",
18 => "380",
19 => "381",
20 => "382",
21 => "383",
),
"SITE" => ",
"COMPANY" => "",
"FILTER_NAME" => "arrFilter",
"MORE_PHOTO" => "MORE_PHOTO",
"CACHE_TYPE" => "A",
"CACHE_TIME" => "86400",
"CACHE_FILTER" => "Y",
"PRICE_CODE" => array(
0 => "BASE",
),
"IBLOCK_ORDER" => "N",
"CURRENCY" => "RUR",
"LOCAL_DELIVERY_COST" => "0",
"COMPONENT_TEMPLATE" => ".default",
"AGENT_CHECK" => "N",
"IBLOCK_TYPE_LIST" => array(
0 => "catalog",
),
"SAVE_IN_FILE" => "Y",
"IBLOCK_CATALOG" => "Y",
"DO_NOT_INCLUDE_SUBSECTIONS" => "N",
"IBLOCK_AS_CATEGORY" => "N",
"BIG_CATALOG_PROP" => "1000",
"HTTPS_CHECK" => "N",
"CACHE_NON_MANAGED" => "N",
"SKU_NAME" => "PRODUCT_AND_SKU_NAME",
"SKU_PROPERTY" => "",
"SALES_NOTES" => "0",
"SALES_NOTES_TEXT" => "Дисконт.Гарантия 2 года. SALE",
"OLD_PRICE" => "N",
"PRICE_ROUND" => "N",
"AVAILABLE_ALGORITHM" => "QUANTITY_ZERO",
"CURRENCIES_CONVERT" => "NOT_CONVERT",
"DELIVERY_OPTIONS_SHOP_EX" => "",
"LOCAL_DELIVERY_COST_OFFER" => "0",
"DELIVERY_OPTIONS_EX" => "",
"STORE_OFFER" => "0",
"STORE_PICKUP" => "0",
"NAME_PROP" => "0",
"NAME_PROP_COMPILE" => "",
"NAME_CUT" => "",
"PROPDUCT_PROP" => array(
),
"OFFER_PROP" => array(
),
"PREFIX_PROP" => "0",
"DESCRIPTION" => "0",
"DETAIL_TEXT_PRIORITET" => "N",
"NO_DESCRIPTION" => "N",
"AGE_CATEGORY" => "0",
"AGE_CATEGORY_UNIT" => "year",
"BID" => "0",
"CBID" => "0",
"CPA_SHOP" => "",
"CPA_OFFERS" => "0",
"EXPIRY" => "0",
"WEIGHT" => "0",
"DIMENSIONS" => "0",
"PARAMS" => array(
0 => "CVET_PLAFONA",
1 => "KOL_LAMP",
2 => "MATERIAL_ARMATURY",
3 => "MOSHNOST",
4 => "MOSHNOST_ALL",
5 => "PLOSHAD",
6 => "STEPEN_ZASHITU",
7 => "STIL",
8 => "SVETOVOY_POTOK",
9 => "TIP_COKOLYA",
10 => "TIP_LAMPOCHKI",
),
"COND_PARAMS" => array(
),
"DISCOUNTS" => "DISCOUNT_CUSTOM",
"UTM_CHECK" => "N",
"UTM_SOURCE" => "YandexMarket",
"UTM_CAMPAIGN" => "",
"UTM_MEDIUM" => "cpc",
"UTM_TERM" => "",
"MARKET_CATEGORY_PROP" => "0",
"DEVELOPER" => "ATT_BRAND",
"VENDOR_CODE" => "0",
"COUNTRY" => "0",
"MANUFACTURER_WARRANTY" => "0",
"MODEL" => "0"
),
false
);?>
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question