All things Shopify and commerce
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?
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.
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.
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.
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024