Cart Recommendations

Avatar

Avatar
Validate 1
Level 2
nmickley
Level 2

Likes

2 likes

Total Posts

8 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
nmickley
Level 2

Likes

2 likes

Total Posts

8 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
nmickley
Level 2

06-04-2016

Team,

We would like to show very specific recommendations on the cart page based on a product(s) in the customer's cart.

For example, we would like to have many of if/then configurations like:

If a "#2 Pencil" is in a customer's cart then show the "White Eraser".

Is this possible? If so, can you help point me in the right direction?

It seems that if it is possible I would do so with a custom attribute (see attachment). However, I can't get the "Select Attribute" dropdown to populate. I have custom attributes in my feed...

Thanks a ton in advance!

Nick

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 2
nmickley
Level 2

Likes

2 likes

Total Posts

8 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
nmickley
Level 2

Likes

2 likes

Total Posts

8 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
nmickley
Level 2

07-04-2016

Jon,

Thank you for your help. I'll give this a go.

Best,

Nick

Answers (1)

Answers (1)

Avatar

Avatar
Give Back 5
Employee
Jon_Tehero
Employee

Likes

61 likes

Total Posts

40 posts

Correct reply

10 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 50
View profile

Avatar
Give Back 5
Employee
Jon_Tehero
Employee

Likes

61 likes

Total Posts

40 posts

Correct reply

10 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 50
View profile
Jon_Tehero
Employee

06-04-2016

Hi Nick,

You are exactly right! You can achieve this by passing in the entity.id of the #2 pencil to a profile parameter of your choosing, such as "profile.lastItemAddedToCart"

Example 1:

    function targetPageParams() {
      return {
      "profile.lastItemAddedToCart": "[ENTITY-ID-FOR-THE-NUMBER-2-PENCIL]"}
    }

Example 2 (with a sample entity.id of 1337-273 for your #2 pencil to show syntax)
    
    function targetPageParams() {
      return {
      "profile.lastItemAddedToCart": "1337-273"}
    }

These examples assume you are using Premium Recommendations implementation. If not, you can do the same by passing the profile.lastItemAddedToCart into an mboxCreate function    

Then you can create a criteria using the following settings: "Based on" > "Custom Attribute" > Select Attribute > "profile.lastItemAddedToCart"

Note: in order to see the profile.lastItemAddedToCart appear in the dropdown, you will need to fire off a call to our servers and it will lazy load into the UI.