Add condition to warning to prevent it from showing in the checkout process.