[仅限PaaS]{class="badge informative" title="仅适用于云项目(Adobe管理的PaaS基础架构)和内部部署项目上的Adobe Commerce 。"}
连接器信息源的字段映射
本页记录了Adobe Commerce Optimizer Connector如何将Adobe Commerce目录字段转换为Commerce Optimizer Catalog Data Ingestion API所需的格式。 有关支持的馈送及其API端点的列表,请参阅连接器引用。
产品
products馈送将数据发送到Products终结点。
skuskustoreViewCodesource/localenamenameurlKeyslugproductIdexternalIds[0].idorigin设置为"AdobeCommerce"statusstatusDISABLED。descriptiondescriptionshortDescriptionshortDescriptionvisibilityvisibleInCatalog映射到CATALOG并将Search映射到SEARCH。 删除其他值。metaTitlemetaTags/titlemetaDescriptionmetaTags/descriptionmetaKeywordmetaTags/keywordsinStock, lowStock, weight, weightUnitattributes[].code = "aco_ac_attributes"aco_ac_attributes条目作为第一个属性。 其JSON值包含inStock和lowStock作为字符串。 当值可用时,它包含weight和weightType。attributes[]attributes[]inStock、lowStock、categories、weight和weightType。 与库存相关的值包含在aco_ac_attributes中。 类别将导出为路由。images[]images[]导出
url、label (如果缺少则为空)和sortOrder (整数,默认为0)。按
sortOrder升序对图像进行排序。将标准角色:
image映射到BASE,small_image映射到SMALL,thumbnail映射到THUMBNAIL,swatch_image映射到SWATCH。 将其他角色导出为customRoles[]。categoryData[].categoryPathroutes[].pathcategoryData[].productPositionroutes[].position0。links[].type + links[].skulinks[]type大写;已丢弃不含sku的条目parents[].productType + parents[].skulinks[]configurable映射到VARIANT_OF,并将bundle或bundle_fixed映射到IN_BUNDLE。 将其他产品类型转换为大写。 跳过没有SKU的父母。configurable optionsconfigurations[]将
id映射到attributeCode。 在swatchType存在时将type设置为SWATCH,否则设置为CONFIGURABLE。使用默认值的ID作为
defaultVariantReferenceId。将每个值映射到
variantReferenceId、label、colorHex和imageUrl。bundle optionsbundles[]使用选项标签作为
group,如果标签为空,则使用Bundle group。 将required复制到输出。将
checkbox和multi渲染类型的multiSelect设置为true。列出
defaultItemSkus中的默认SKU。 每个项目包括sku、qty(默认为0)和userDefinedQty(从qtyMutability,默认为false)。产品属性元数据
productAttributes馈送将数据发送到元数据终结点。
attributeCodecodestoreViewCodesource/localelabellabeldataType + frontendInputdataTypedataType和frontendInputdataTypevisible, visibleInSearch, visibleInListing, visibleInCompareListvisibleIn[]true时,将其对应的值添加:visible → PRODUCT_DETAILvisibleInSearch → SEARCH_RESULTSvisibleInListing → PRODUCT_LISTINGvisibleInCompareList → PRODUCT_COMPAREfilterablefilterablesortablesortablesearchablesearchablesearchWeightsearchWeightsearchTypessearchTypes数据类型转换
当dataType为int时,连接器检查frontendInput。 对于其他数据类型,frontendInput不会影响转换。
dataTypefrontendInputdataTypeintbooleanBOOLEANinttext或selectTEXTintINTEGERdecimalDECIMALtext, varchar, static, datetimeTEXTOBJECTOBJECTTEXT价格手册
priceBooks信息源将数据发送到价格手册终结点。
与其他连接器馈送不同,Adobe Commerce中的SaaS Data Export索引器不收集priceBooks馈送。 连接器从管理员的网站和客户组配置生成此信息源。
对于每个网站,连接器会为每个客户组创建一个基本价格手册和一个子价格手册。
对priceBookId使用这些公式:
- 常规价格的基础价格手册:
priceBookId = websiteCode。 - 客户组的子价格手册:
priceBookId = websiteCode::sha1(customerGroupId),其中sha1(customerGroupId)是客户组的整数ID的SHA-1十六进制摘要。
价格信息源使用相同的公式将每个价格条目分配给价格手册。 有关店面如何为客户会话解析priceBookId的信息,请参阅Headless店面集成。
websiteCodeparentIdnameCustomer group name (Website name)用于子价格簿。websiteCodeparentIdcurrency价格
prices信息源将Adobe Commerce数据发送到Prices终结点。
skuskuwebsiteCode, customerGroupCodepriceBookIdwebsiteCode与customerGroupCode中客户组ID的SHA-1哈希合并。 如果customerGroupCode是0,则仅使用websiteCode。regularregulardiscounts[]discounts[]null,则导出空数组。对于将
code设置为special_price并且值为percentage的条目,当值介于0和100之间时,将percentage设置为100 - percentage。 将该值设置为该范围内的0或该范围之外的值。通过其他条目(包括基于价格的特殊价格),而不更改。
tierPrices[]tierPrices[]null,则使用空数组。类别
categories源将Adobe Commerce数据发送到类别终结点。
将跳过具有空urlPath的项目(逻辑根类别),并且从不提交这些项目。
storeViewCodesource/localenamenameurlPathslugdescriptiondescriptionpositionpositionmetaTitlemetaTags/titlemetaDescriptionmetaTags/descriptionmetaKeywordsmetaTags/keywordsimageimages[].urlroles: ["BASE"]isActive + includeInMenufamilies["top_menu"],若两者均为true,否则[]| metaKeywords | metaTags/keywords |将换行分隔的关键字拆分到数组中并修剪空格。 |
| image | images[].url |当存在image时,将导出一个角色为BASE的图像。 在图像为空或缺少图像时导出空数组。 |
| isActive + includeInMenu | families |仅当两个值均为true时才添加top_menu。 否则,将导出空数组。 |
| attributes[] | attributes[] |将具有非空attributeCode的条目导出为{code, values[]}。 将值转换为字符串。 不存在符合条件的条目时省略attributes。 |