This content has been marked as final. Show 2 replies
You can customize CartModifierFormhandler.addItemToOrder() method to check for the number of items in cart and throw an exception
List commerceItems =getCurrent().getCommerceItems();
You can also set a variable in cart.jsp which counts the number of items in cart while displaying the commerce items.