匯入目錄的選項

有一些將目錄匯入Adobe Commerce的原生方法。 每種方法都有其使用理由,以及必須考慮的優點和缺點。

從下列其中一個選項選擇以深入瞭解。

手動

手動建立產品 manual-import

如果您的目錄有限且不常更新,手動建立可能是最佳選擇。 輸入每個產品都需要時間,而且有關如何使用Commerce管理員的訓練也有限。 手動目錄管理對大部分的商店來說不是正確的選項,但在某些情況下,這是合理的。 若要檢視此程式的其他檔案,請造訪建立產品。 別忘了,您可以使用多種方法來管理您的目錄,不過一旦使用自動化,手動編輯必須受到限制。 自動更新有機會覆寫手動執行的任何變更,因此會導致混淆。 一旦與Adobe Commerce的整合使用自動化和API來管理目錄,建議限制管理員透過使用者角色和許可權管理目錄。

何時考量此方法

  • 非常小的目錄,例如少於50種產品
  • 不常更新
  • 您已擁有所有產品詳細資料、影像、影片,而且您不想花時間瞭解如何將資料轉換為CSV
  • 建立產品時要加入新增影像和影片
  • 您的團隊not熟悉API以及OAUTH的運作方式
管理員CSV

管理員CSV匯入工具 admin-csv

此工具可讓商店擁有者使用CSV許可權,從商務管理員匯入目錄。
從Commerce管理員匯入資料

優點:
從管理員上傳CSV是目錄管理的直接方法。 它允許對適度大小的目錄進行更快的目錄產品更新。

缺點:

  • 慢速
  • 伺服器上定義的上傳檔案大小上限,商店所有者可能無法輕鬆調整。
  • 需要管理員存取權及執行動作的人員,自動化受到限制
  • 排程匯入限製為每天最多1次
  • 關聯的影像和視訊必須個別上傳

何時考量此方法

  • 目錄大小為中等
  • 更新每天不超過一次
  • 您可以存取一些伺服器設定,以備您必須增加檔案上傳大小上限
  • 您的團隊not熟悉API以及OAUTH的運作方式
大量REST API

大量REST API bulk-rest-api

大量REST API允許自動化和更頻繁的更新。 此API比使用CSV的管理員上傳更快。
大量端點檔案

優點:
The ability to import large data sets that are not in CSV format.

缺點:

  • 關聯的影像和視訊必須個別上傳
  • Can be limited by bandwidth constraints on the hosting provider

何時考量此方法

  • Catalog is any size
  • Updates are frequent, more than 1x a day is acceptable
  • Time to import is important but not critical and a short delay in processing the import data is acceptable
  • The data is not structured in CSV format and you are not capable of transforming it using automation
ASYNC REST API

ASYNC REST API async-rest-api

An asynchronous web endpoint intercepts messages to a Web API and writes them to the message queue. Each time the system accepts such an API request, it generates a UUID identifier. Adobe Commerce includes this UUID when it adds the message to the queue. Then, a consumer reads the messages from the queue and executes them one-by-one.
Asynchronous web endpoints documentation

優點:

  • Fast to import data
  • Store scope is supported or you can specify all to perform operation on all existing stores

缺點:

  • GET request are not supported

何時考量此方法

  • Imports are frequent
  • No issue with a small delay from the time they are submitted via API and then processed from the message queue.
CSV REST API

CSV REST API csv-rest-api

相較於其他所有原生選項,此API選項允許以極快的速度匯入。

匯入資料REST CSV API
優點:

  • 處理傳入資料的最快方法
  • 可每天執行多次
  • 對於大型請求,可以使用gzip來壓縮資料,以避免HTTP請求大小限制。

缺點:

  • 關聯的影像和視訊必須個別上傳
  • 資料必須是CSV格式

何時考量此方法

  • 目錄為任意大小
  • 更新頻繁,每天超過1倍是可接受的
  • 整體匯入時間很重要
  • 資料已經是CSV格式,或是可以使用自動化輕鬆轉換

其他資源

recommendation-more-help
commerce-learn-help-home