ShopifySharp
ShopifySharp copied to clipboard
CustomCollection filter does not work as expected
Hi!
when i set the UpdatedAtMax or/and UpdatedAtMin properties of the CustomCollectionFilter the behaviour is unexpected and most of the times I get an exception..
Hey @nlevos! What kind of exceptions are you getting?
Hi!
If I set only the "publishedstate" and the updatedatmax and updatedatmin properties, (for example if I use the filter in the photo)
I get the following exception:: "An item with the same key has already been added. Key: updated_at_min". (as you can see on the photo also)::
In my opinion, the problem lies in the updatedatmin property! There is something wrong there...
The only way to make the filter work as expected is to not set the updatedatmax and updatedatmin properties at all! As, if for example I set only the updatedatmin property, I get results outside of the timeframe of the filter!
So the only certain way to sync the customcollection and collects is to go through and filter the product collections and collects of each product.. which is a shame, as everything else works as expected..
Hey @nozzlegear ! did you had any time to check this out?