Update template.xml

Added parameter for secondary order state