prioritizing product by category in adobe target recommendation | Community
Skip to main content
Level 2
June 19, 2023
Solved

prioritizing product by category in adobe target recommendation

  • June 19, 2023
  • 1 reply
  • 1163 views

In Home pages I want to create a recommendation  'Trending products' . Recommendations should be only one product from each category w.r.t category priority list
Priority list:

Workbags
Totes
Shoulder bags
Handhelds
Organisers
Slings
Backpacks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ambikaTewari_ATCI

Hi @shoeb131  you can follow below steps if that helps you :

 

create collection of using each and every category mentioned above

Use custom design using velocity JS something like below :


#foreach($e in $entities)
#if($e.category=="Workbags")
"slot-01": "$entity1.id",
#end
#if($e.category=="Totes")
"slot-02": "$entity2.id",
#end
#if($e.category=="Shoulder bags")
"slot-03": "$entity3.id",
#end
.
.
.
.
.
#end

Use this in recommendation activity

 

You can modify the design on the basis of your requirement. You can get more idea around this through this help article : https://experienceleague.adobe.com/docs/target/using/recommendations/recommendations-design/customizing-a-template.html?lang=en

 

 

Hope that helps you!

 

1 reply

ambikaTewari_ATCI
Community Advisor
ambikaTewari_ATCICommunity AdvisorAccepted solution
Community Advisor
June 21, 2023

Hi @shoeb131  you can follow below steps if that helps you :

 

create collection of using each and every category mentioned above

Use custom design using velocity JS something like below :


#foreach($e in $entities)
#if($e.category=="Workbags")
"slot-01": "$entity1.id",
#end
#if($e.category=="Totes")
"slot-02": "$entity2.id",
#end
#if($e.category=="Shoulder bags")
"slot-03": "$entity3.id",
#end
.
.
.
.
.
#end

Use this in recommendation activity

 

You can modify the design on the basis of your requirement. You can get more idea around this through this help article : https://experienceleague.adobe.com/docs/target/using/recommendations/recommendations-design/customizing-a-template.html?lang=en

 

 

Hope that helps you!

 

shoeb131Author
Level 2
July 3, 2023

I am using "Trending Products " as base criteria here some time I am getting products from 3 or 4 categories. i am not getting products across all the category each time. how do i make sure that i am getting at least one product from each category every time from algorithm.