Applying discount code to checkout automatically