Each product resource has a template variable named
ProductPopular - It's a
checkbox with a default value of 0.
If you check it in the resource it has the value of 1.
On a page i place a getResources call looking like the following ( Where par & lim has values ):
[[getResources?
&parents=`[[+par]]`
&sortby=`{"pagetitle":"ASC"}`
&tpl=`product`
&limit=`[[+lim]]`
&includeTVs=`1`
&includeTVList=`pImage,ProductPopular`
&where=`{"ProductPopular:=":1}`
]]
What i am trying to do is to filter the products to only display those where the popular product tv has been checked.
Now , obv this doesnt work. But is there a state such a where command? Or should i just customize it?
Thanks for your time.
/w