Can a teacher sell merchandise in connection with a program/seminar/workshop?

Yes, in accordance with established policy/procedures, and as described in any written contract with the teacher.