add function 'select_template' to product