ShopifySharp icon indicating copy to clipboard operation
ShopifySharp copied to clipboard

CustomCollection filter does not work as expected

Open nlevos opened this issue 4 years ago • 3 comments

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..

nlevos avatar Mar 30 '20 21:03 nlevos

Hey @nlevos! What kind of exceptions are you getting?

nozzlegear avatar Mar 31 '20 00:03 nozzlegear

Hi!

If I set only the "publishedstate" and the updatedatmax and updatedatmin properties, (for example if I use the filter in the photo)

image

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)::

image

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..

nlevos avatar Mar 31 '20 09:03 nlevos

Hey @nozzlegear ! did you had any time to check this out?

nlevos avatar Apr 01 '20 11:04 nlevos