I have a product catalog with a template variable to store the price. I am also running getresources within a snippet and that seems to work no problem as well. The problem occurs when trying to filter the result set using the price. For example, I have a price that is > 0 and < 300. There is no result at all when there should be a result. I can filter by the category tv no problem.
Here is the snippet call inside the snippet:
output = $modx->runSnippet('getResources',array(
'parents'=>'8',
'tpl'=>'grid_detail',
'includeTVs'=>'1',
'tvPrefix'=>'',
'limit'=>'',
'processTVs'=>'1',
'showHidden'=>'1',
'hideContainers'=>'1',
'tpl_2'=>'grid_detail_middle',
'tpl_n3'=>'grid_detail_middle',
'idx'=>'5',
'depth'=>'0',
'tvFilters'=>"tv.product_category==$category,tv.product_price > $lowerprice,tv.product_price < $higherprice",
'sortbyTV'=>'tv.product_price',
'sortdirTV'=>'ASC',
'sortbyTVType'=>'decimal'
));
Is this a limitation of getresources with regards to evaluating numeric tv values or is there something wrong with my code?