Hi, we are a charity that offers free educational materials to teachers. We offer two categories: Lessons, and Topical Stamps. We use WooCommerce for these orders. We would like to restrict the number of distinct products (line items) in the cart, rather than quantity. For example, we would like a teacher to order no more than 4 lessons per month. So, in their order, they may order
Lesson A, quantity 30 (number of students)
Lesson B, quantity 30
Lesson C, quantity 20
Lesson D, Quantity 20.
Each teacher will have different numbers of students (quantities), so we can’t limit by quantity. Some will have 5 students, others 30, etc. In the above scenario, the teacher has ordered 4 lessons (A, B, C, and D) at the quantity they need, and we don’t want them to order any more lessons until next month.
Is it possible to limit the number of products (by category) in the cart, rather than the quantity?