question: public static String checkCart ( HttpServletRequest request , HttpServletResponse response ) { ShoppingCart cart = getCartObject ( request ) ; if ( cart == null || cart . size ( ) <= 0 ) { return "cartEmpty" ; } return "success" ; }
target:  SCIPIO: Checks if cart empty and valid. If missing or empty, returns cartEmpty. If broken some other way, returns "error". Otherwise, returns "success". <p> Helps with template compatibility. <p> NOTE: There is a org.ofbiz.order.shoppingcart.CheckOutEvents.cartNotEmpty, but it returns error when cart empty.