Welcome to Shopify Community. My name is Olivia and I work here.
I'd love to help answer your question today. In fact, I found a similar forum thread that provides a solution to exactly what you need. For your convenience, there's a DIY code option, or app option to choose from in the linked thread.
I trust that should do the trick, but let me know if other questions come up.