Hi,
Adobe Sensei product recommendations are currently displayed on all product pages, but we want to control them at a more granular category level.
Specifically, we want to display product recommendations from Category B when viewing products in Category A, and vice versa. This would allow us to provide more relevant and personalized product recommendations to our customers.
Has anyone encountered a solution to this issue?
Solved! Go to Solution.
You can use filters to achieve that, here is the official user guide - https://experienceleague.adobe.com/docs/commerce-merchant-services/product-recommendations/admin/fil...
Hi @tombakerbl86f9,
Controlling Adobe Sensei product recommendations at a more granular category level involves customization and configuration within your Adobe Commerce (Magento) instance. Adobe Sensei relies on the underlying eCommerce platform's data structure and configuration to provide relevant recommendations.
Here are general steps you can take to achieve this goal:
// Get current product $currentProduct = $this->getCurrentProduct(); // Get associated categories $associatedCategories = $currentProduct->getCategoryIds(); // Loop through categories and display recommendations from a different category foreach ($associatedCategories as $categoryId) { // Implement logic to load recommendations from a different category $recommendedProducts = $this->getRecommendationsFromCategory($categoryId); // Display recommendations $this->displayRecommendations($recommendedProducts); }
If the issue will be resolved, Click Kudos & Accept as a Solution.
You can use filters to achieve that, here is the official user guide - https://experienceleague.adobe.com/docs/commerce-merchant-services/product-recommendations/admin/fil...
Hi @tombakerbl86f9,
Controlling Adobe Sensei product recommendations at a more granular category level involves customization and configuration within your Adobe Commerce (Magento) instance. Adobe Sensei relies on the underlying eCommerce platform's data structure and configuration to provide relevant recommendations.
Here are general steps you can take to achieve this goal:
// Get current product $currentProduct = $this->getCurrentProduct(); // Get associated categories $associatedCategories = $currentProduct->getCategoryIds(); // Loop through categories and display recommendations from a different category foreach ($associatedCategories as $categoryId) { // Implement logic to load recommendations from a different category $recommendedProducts = $this->getRecommendationsFromCategory($categoryId); // Display recommendations $this->displayRecommendations($recommendedProducts); }
If the issue will be resolved, Click Kudos & Accept as a Solution.