set condition for checkout