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

Valerieandryan
Tourist
6 0 2

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?

Replies 3 (3)

JoesIdeas
Shopify Expert
2195 201 587

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.

 

• Creator of Order Automator (automate tagging, fulfillment, Amazon, notifications + more)
• Shopify developer for 10+ years, store owner for 7 years
• I also make guides like Shopify Automation Tips and How to Deal with Fraud / Chargebacks
Valerieandryan
Tourist
6 0 2

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. 

Ankit_Thakur
Shopify Partner
52 1 4

Hi @Valerieandryan  if you are still looking for a solution to this you can try using the Checkout Guardian app, wherein you can set the product be shipped to a particular country code/province based on predetermined rules. You can display a customised message to the client saying this product is not available for shipping in your said area. 


Let me know if you find this app suitable as per your requirment. 

Shopify Developer/Consultant
If my suggestions are useful, please let me know by giving it a like or marking it as a solution.
And if you want to customize or develop new feature on Theme or App.
Skype:-ankit.thakur_5