WooCommerce Cart Quantity Base Discount
In WooCommerce, how do I set a cart discount based on the total number of items in the cart? For example: 1 to 4 items - no discount 5 to 10 items - 5% 11 to 15 items - 10% 16 to 20 items - 15% 21 to 25 items - 20% 26 to 30 items - 25% I've search internet but not found any solution or plugins available. Thanks. LoicTheAztec You can use a negative cart fee to get a discount. Then you will add your conditions & calculations to a acustom function hooked in woocommerce_cart_calculate_fees action hook, this way: ## Tested and works on WooCommerce 2.6.x and 3.0+ add_action( 'woocommerce_cart