How to Apply Dynamic Discount Rules with Coupon Codes in WooCommerce Cart and Checkout