[僅限PaaS]{class="badge informative" title="僅適用於雲端專案(Adobe管理的PaaS基礎結構)和內部部署專案的Adobe Commerce 。"}
聯結器摘要的欄位對應
此頁面記錄了Adobe Commerce Optimizer Connector如何將Adobe Commerce目錄欄位轉換為Commerce Optimizer Catalog Data Ingestion API所需的格式。 如需支援的摘要及其API端點的清單,請參閱聯結器參考。
產品
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。使用預設值的識別碼做為
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, datetimeTEXTOBJECTOBJECTTEXTOBJECT資料型別時,Products API會嘗試將其儲存的值剖析為JSON。 如果剖析成功,API會傳回值作為巢狀物件。 針對無法以單一值表示的結構化屬性資料,請使用OBJECT。 如需指示,請參閱動態新增產品屬性。價格簿
priceBooks摘要傳送資料至價格簿端點。
與其他聯結器摘要不同,Adobe Commerce中的SaaS Data Export索引器不會收集priceBooks摘要。 聯結器會從Admin的網站和客戶群組設定產生此摘要。
聯結器會針對每個網站,為每個客戶群組建立一個基本價格簿和一個子價格簿。
對priceBookId使用這些公式:
- 一般價格的基準價格簿:
priceBookId = websiteCode。 - 客戶群組的子價格簿:
priceBookId = websiteCode::sha1(customerGroupId),其中sha1(customerGroupId)是客戶群組的整數ID的SHA-1十六進位摘要。
價格摘要會使用相同的公式,將每個價格專案指定至價格簿。 如需店面如何針對客戶工作階段解析priceBookId的相關資訊,請參閱無頭店面整合。
websiteCodeparentIdnameCustomer group name (Website name)。websiteCodeparentIdcurrency價格
prices摘要傳送Adobe Commerce資料至價格端點。
skuskuwebsiteCode, customerGroupCodepriceBookIdwebsiteCode與customerGroupCode中客戶群組識別碼的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。 |