How to apply discount automatically without using coupon?