Cart item quantity progressive percentage discount in Woocommerce 3
问题 I am trying to apply a TOTAL CART discount to all the items in the cart, depending on the quantity of items added. I have taken and modified the code example from answer here and got most of the logic working. I cannot however get it working for two scenarios described below. It also only applies the rule to a single item in the cart. Not the entire cart. Scenario: If no of items in the cart are between 9-12, Apply 5% Discount to all items. If no of items in the cart are between 13-16, Apply