Programatic condition to filter products in a strategy

Comments

6 comments

  • Meira Farber

    Hi,
    You can create a custom evaluator for such code and then use it in the targeting tab of each filtering rule -

    Comment actions Permalink
  • Malte Warnke

    Does this work to filter Products? But I’ll try it. Maybe I should have said that, in my question…

    Comment actions Permalink
  • Alexander Mikhaylov

    Maybe I suggest not the most elegant solution, but…
    if you need filters by day of the week and they are in the feed:

    1. Choose column “day” with value “sunday” on step 2.
    2. Choose additional targeting condition on step 3

    Comment actions Permalink
  • Malte Warnke

    Thank you for your idea, I have a question though:
    Where would I access the product feed data in this case? The actual date must be compared with the values from each single product in the product feed. In order to prevent recommending products which are not supposed to be visible in this specific strategy.

    Comment actions Permalink
  • Alexander Mikhaylov

    can you tell us more about your case? what data do you have in the feed?

    I can only guess…
    At least, you can compare the current date before generating the feed on your backend side or in the DY parser function.

    For example,
    column “date” contains “09.29.2019”.
    you compare the current date with the column value in the parser and create an additional column with “true” if current date is less

    Comment actions Permalink
  • Malte Warnke

    Thank you. That is a good hint. We will try to work with the parser. That should work.

     
    Comment actions Permalink

Please sign in to leave a comment.