tlc - bug fixes

foreach didn't allow updating of the vars within the statement.
bug in set if path was used.
orders - new button in order view for print preview