安裝與設定

部署 Product Recommendations 若要使用您的店面,管理員需要您安裝模組並設定 Commerce服務聯結器. 在發行更新時,您可以使用最新版本輕鬆更新安裝。

安裝 Product Recommendations install

因為 Product Recommendations 模組是獨立的中繼套件,比Adobe Commerce更常發佈更新。 為確保您瞭解最新的錯誤修正和功能,請參閱 發行說明.

安裝 magento/product-recommendations 含有撰寫器的模組:

composer require magento/product-recommendations

新增頁面產生器支援 pbsupport

Product Recommendations 適用的頁面產生器是選用模組,需另行安裝。 使用 Product Recommendations 使用Page Builder,執行下列命令以安裝模組:

composer require magento/module-page-builder-product-recommendations

透過啟用 Product Recommendations 在頁面產生器中,您可以新增現有的作用中 推薦單位 至在「頁面產生器」中建立的任何內容,例如頁面、區塊和動態區塊。

另請參閱 使用 Product Recommendations 使用頁面產生器內容 以取得進一步指示。

新增視覺相似度推薦型別 vissimsupport

視覺相似度 建議型別可讓您將建議單位部署至產品詳細資料頁面,該頁面顯示符合以下條件的產品 視覺類似 至正在檢視的產品。 當產品的影像和視覺方面是購物體驗的重要部分時,此建議型別最有用。 安裝 視覺相似度 建議型別,方法是執行下列命令:

composer require magento/module-visual-product-recommendations

設定 Product Recommendations configure

安裝之後 magento/product-recommendations 模組,您必須設定 Commerce服務聯結器 指定API金鑰並選取SaaS資料空間。

若要確保目錄匯出可正確執行,請確認 cron 工作與 索引子 正在執行,而且 Product Feed 索引子設定為 Update by Schedule.

當您透過API金鑰成功連結至Commerce Services並指定SaaS資料空間時,目錄同步就會開始。 您可以 驗證 行為資料正在傳送至您的店面。

更新您的 Product Recommendations 安裝 update

就像所有的Adobe Commerce一樣, Product Recommendations 使用Composer進行安裝和更新。 若要更新 magento/product-recommendations 模組,執行以下命令:

composer update magento/product-recommendations --with-dependencies

若要更新為主要版本,例如從3.0到4.0,您必須編輯根目錄 composer.json 您的專案的檔案。 (請參閱 發行說明 以取得最新版本的相關資訊。) 例如,讓我們開啟 composer.json 檔案並搜尋 magento/product-recommendations 模組:

"require": {
    ...
    "magento/product-recommendations": "^3.0",
    ...
}

讓我們從擴充主要版本 3.04.0

"require": {
    ...
    "magento/product-recommendations": "^4.0",
    ...
}

儲存 composer.json 檔案並執行:

composer update magento/product-recommendations --with-dependencies

或者,如果您已安裝 magento/module-visual-product-recommendationsmagento/module-page-builder-product-recommendations 模組:

composer update --with-dependencies magento/product-recommendations magento/module-visual-product-recommendations magento/module-page-builder-product-recommendations
NOTE
在產品Recommendations 3.x.x版中,您只需要單一API金鑰。 在4.x.x版及更新版本中,您必須提供生產用公開和私人API金鑰,以及沙箱公開和私人API金鑰。 如果您未提供這兩組API金鑰,將無法在「管理員」中存取「產品Recommendations」功能。 不過,資料收集仍會繼續存在於您的店面,而現有的建議仍會繼續向您的購物者顯示。

防火牆

若要讓產品Recommendations通過防火牆,請新增 commerce.adobe.io 至允許清單。

解除安裝 Product Recommendations uninstall

如有需要,您可以 解除安裝 產品recommendations模組。

recommendation-more-help
4bf3c55a-3844-4322-a5d2-42b4e56228e5