3namespace Bitrix\Sale\TradingPlatform\Ebay;
5use Bitrix\Main\SystemException;
6use Bitrix\Sale\TradingPlatform\MapTable;
7use Bitrix\Sale\TradingPlatform\MapEntityTable;
8use Bitrix\Sale\TradingPlatform\Platform;
24 return "CATEGORY_IBLOCK_".$iblockId;
34 return "CATEGORY_VAR_".$iblockId.
"_".$ebayCategoryId;
43 return "DELIVERY_".$siteId;
88 "TRADING_PLATFORM_ID" => $ebay->getId(),
89 "CODE" => $mapEntityCode
92 $catMapVarEntRes = MapEntityTable::getList(
array(
96 if($arCatVarMapEnt = $catMapVarEntRes->fetch())
98 $result = $arCatVarMapEnt[
"ID"];
102 $addRes = MapEntityTable::add(
$fields);
104 if($addRes->isSuccess())
109 throw new SystemException(
"Can' t get map entity id for code: ".$mapEntityCode.
".");
124 $deliveryRes = MapTable::getList(
array(
126 "ENTITY_ID" => $deliveryEntId,
127 "VALUE_EXTERNAL" => $ebayDelivery
131 while($arMapRes = $deliveryRes->fetch())
132 $result[$arMapRes[
"VALUE_EXTERNAL"]] = $arMapRes[
"VALUE_INTERNAL"];
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)