&hideFolders=`1` &filter=`inventory,5,4` &tpl=`iteminfo`
Adding the above line to a ditto call of your products catalog will show products that have less than 5 stock remaining. Broken up, each bit means:
*&hideFolders=`1` = This stops any folders coming up in your results, useful if you have categories and sub-categories etc.
*&filter=`inventory,5,3` = Uses the tv "inventory" and the value "5" and the mode "3", which means less than, to filter the results. Get more info on this [[http://ditto.modxcms.com/files/snippet-ditto-php.html|here]].
*&tpl=`iteminfo` = The final bit points to a template(chunk) that Ditto uses to style the results, for example:
[+title+]
Code:[+code+]
Current stock level:[+inventory+]
This is a very basic example, but its a good start in expanding on the foxycart inventory control a little.