Don't allow customers to purchase specific products in specific states

New Member
4 0 0

I have multiple products that are not available in a specific state.

One product may sell in every state except Michigan, another may be sold to any state except Florida.

Anyone aware of a potential solution to not allow customers to checkout if the ship to is in the limited state for a product in their cart?

Shopify Expert
1104 88 247

I have a couple ideas:

a) Easiest solution is to put some text on the page, maybe a red box above the add to cart button that says something like "This product is not available in Michigan". You can use Liquid code to only show this message for the specific products.

b) If you implement solution A but find people are not seeing the message, you can force them to select their state before adding to cart. On the product page, put in a dropdown with all the states, and disable the add to cart button until the user selects a state. If they select MI or FL on the product, then show a message saying you can't ship there.

c) If you want to guarantee preventing the shipping you can make separate shipping profiles. Go to Settings > Shipping and Delivery and set specific shipping zones excluding those states for those products. Then the user will not be able to select a shipping rate for that product.


Founder of Speed Boostr (Shopify optimization experts, theme customization, custom app development).
Creator of Shopify Analyzer (first performance analysis tool for Shopify sites, free for the Shopify community).
Creator of Order Automator (auto tag orders and customers + auto fulfill orders + email notifications).
Creator of Theme Scientist (A/B testing app) and Tip Jar (add a tip button to your store).
New Member
4 0 0

I ran into an issue with option 3 when a customer ordered a product with a different shipping profile.
They had multiple items in their cart, when they checked out, they were charged for both shipping profiles.

We charge shipping based on number of products ordered.