adding support for product types to support invoicing. Includes select box support on the template view.