Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Criteria set-up. Display products that matches an entity parameter on mbox

michaelt2449324
Level 2
Level 2

Hi - I am trying to create a recs component that should provide product recommendations based on the entity parameter I am passing in mbox.

In the mbox call, I am passing an entity parameter which is 'entity.status'

In the data catalog, my products also have that attribute - entity.status.

What I want to happen is if the value I passed to the entity.status parameter is '1' in the mbox call, I want to see in recs all of the products in my data catalog that has a entity.status = 1.

I don't want to use the most viewed algorithm since my site is getting very low traffic.

1 Accepted Solution
Jon_Tehero
Correct answer by
Employee
Employee

Hi Michael,

You are really close!

If you pass in an mbox parameter (a.k.a. targetPageParameter) called "status" -- not entity.status -- this use-case will work. So set status equal to 1 in the parameter an make sure that the items in the catalog have a corresponding entity.status value equal to 1. Also make sure you are passing both of them in the same way (either as a string or a value) so that the matching isn't trying to compare different types of data. Once you are passing in the parameter status=1, you can follow the setup below. Hope that helps!

In your Criteria Card, click "Add Filtering Rule"

1362812_pastedImage_4.png

then select "Parameter Matching"

1362813_pastedImage_5.png

Then you create a rule that looks like this (you may need to change the name of the mbox):

1362814_pastedImage_6.png

View solution in original post

1 Reply
Jon_Tehero
Correct answer by
Employee
Employee

Hi Michael,

You are really close!

If you pass in an mbox parameter (a.k.a. targetPageParameter) called "status" -- not entity.status -- this use-case will work. So set status equal to 1 in the parameter an make sure that the items in the catalog have a corresponding entity.status value equal to 1. Also make sure you are passing both of them in the same way (either as a string or a value) so that the matching isn't trying to compare different types of data. Once you are passing in the parameter status=1, you can follow the setup below. Hope that helps!

In your Criteria Card, click "Add Filtering Rule"

1362812_pastedImage_4.png

then select "Parameter Matching"

1362813_pastedImage_5.png

Then you create a rule that looks like this (you may need to change the name of the mbox):

1362814_pastedImage_6.png

View solution in original post