Display message based on cart items count in WooCommerce cart
问题 I'd like to display a message in either woocommerce_before_cart or woocommerce_before_cart_table if the total number of items in the cart is less than X, and also display the difference. By items I mean individual quantities not product lines. How can I add a function that sums the quantities of all items in the cart and displays a message if the total is less than the specified quantity? Example: Set the number to 30, cart contains a total of 27 items, so a message would say 'If you order 3