Limit Events (not ticket quantity) in cart
-
What I am trying to achieve is to limit number of events (the number of product in a WooCommerce cart).
For Example
A user selects 5 number of tickets for event E1 (now cart has 5 tickets for E1 event)
Now if user select another event say E2 and adds another 5 either I want user to be notified he cannot add any events as he/she has already chosen tickets for E1.
There I want to give option to goto checkout and purchase E1 or clear E1 and add E2 tickets just selected.For normal woocommerce products (like those in sample data of WC), I can block any addition or clear cart using the filter woocommerce_add_to_cart_validation. But it is not working for OT events.
- The topic ‘Limit Events (not ticket quantity) in cart’ is closed to new replies.