Answered
How to create a smart collection with a collection criteria?
I'm trying to create a smart collection with two rules: rating >= 1 and collection contains all some collection name and it's not working. This is the code:
searchDesc = {
combine = "intersect",
{
-- 1 star or above
critera = "rating",
operation = ">=",
value = 1
},
{
critera = "collection",
operation = "all",
value = collectionName
},
}
catalog:createSmartCollection(smartCollectionName, searchDesc, nil)
Where collectionName is the selected collection.
When I edit the smart collection that's created, the first rule is set correct, but the second rule is set on "rating" with the operation and value blank.
What am I doing wrong?