again this would be easy to do with package smarty code, see

http://forums.buyscripts.in/viewtopic.php?p=6352