Programatic condition to filter products in a strategy
We want to implement some automation based on some special product feed fields to filter products for the strategy, which rely on the calender week.
Eg. (in pseudo code)
calender week (from product feed) – is – new Date().getCalenderWeek()
The actual code is more complex.
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.
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.
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
Please sign in to leave a comment.