cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Recommendations :exclude products variants by their base product; showing variants in the carousel

0 Likes
754

Hi all,


I have enabled "CUANPROD-PROD_ID aka product id" from "CEI_CUAN_PRODUCT aka SAP Marketing Product" datasource to be used in recommendations to filter product id out.

I would like to exclude all the product variants (which are a LOT) by only specify their base product id.

This seems impossible since the filter "productid" is applied only with "equals" action and not "contains" action (other fields have this possibility) and since the variant id is different from base product id, the recommendation algoritm won't filter them out.

The only immediate solution I have found is to remap ids to base product in algo parameters, but the result is not what I want since I'm not interested to show in the carousel base products but product variants. And there is no way to map them back to their original variant ids.

There is a simple way to achieve this that I am missing?

Many thanks,

Laura

Accepted Solutions (0)

Answers (5)

Answers (5)

0 Likes

Thank you very much, this solved mi issue.

Laura

0 Likes

Hi abdullah.amerk ,

I understand what you are suggesting but I'm having some issues with the implementation.

I've added and enabled a new custom field to which attach the logic but I cannot find where I can stick the logic to it.

I supposed this has to be done in custom logic tab--> marketing recommendation --> Enhance Recommendation Runtime Parameters (it's the only one that seems fit) but here it seems the product_id parameter is not visible (or maybe I'm not good at BADl)

What am I missing here?

Many thanks,

Laura

Abd_Am_K
Active Participant

Hi lafemmenikita85 ,

I am suggesting to create a custom hana view. You can find the necessary reference in the help and in this blog.

BADis will not work for your case. I think the "Enhance Recommendation Runtime" Parameters has a totally different use-case.

A custom field will work but for the custom field to work, you will need to reimport the product data and fill the custom field appropriately.

Thanks,

Abd_Am_K
Active Participant
0 Likes

Hi lafemmenikita85,

A custom prefilter for the products should work. You can specify in the custom view for product prefilters which products needs to be kept and which need to be removed using something like:

PREFILTER_VALUE : CASE LEFT("PRODUCT_ID", 3) WHEN 'XYZ' then 'YES' ELSE 'NO' END

This when then actiavated can be used to Prefilter the product selection on the Recommendation Model Prefilters.

Please use the @ and my id. So that I get informed for your replies.

Thanks,

0 Likes

Hi Abdullah,

If I have understood your question correctly:

In the productID prefilter there are both base and variants ids, so we can filter them there.

Are you suggesting to add a custom pre filter parameter in which save only the base id?

Which type will allow to have a "contains" rule?

Isn't There a way to simply change the productID type since everything is already there?

Many thanks,

Laura

Abd_Am_K
Active Participant
0 Likes

Hi lafemmenikita85 ,

How are you filtering the base products now?

I would have tried to enricht the product data to contain such a field with which i can filter.

I think you probably already know about the data source prefilters