Minimum cart amount for specific product categories in WooCommerce
问题 In WooCommerce I use an OUTLET category with on sale products and I would like to set a minimum subtotal (30 €) for customers purchasing any "Outlet" product. I tried to hook into woocommerce_after_calculate_totals to: check cart items for a specific product category display a notice when a specific product category is found and the order is lower than 30 € and eventually redirect to cart page when user tries to checkout with an order lower than 30 €. Here is my code: add_action( 'woocommerce