Streaming live at 10am (PST)

Restrict shipping to state/region and offer 'request a quote' for orders from outside that state

Hi all,

My client wants to set up an ecommerce store for heavy sculptures.

He wants to restrict shipping to the state of New South Wales, Australia. For all orders outside this state, he wants to allow customers to request a quote, due to difficulty of delivering the sculptures.

Is it possible to do this?

Thanks!

1 Like

Hey @deepc

At this time, it is only possible to limit shipping at the country level.

An idea for you would be to setup up a flat shipping method for each state in Australia. It would be up to the customer to select the matching state for their shipping address, but could allow for more accurate shipping rate to be offered.

Hope that helps.

My recommendation to you and anyone else reading this that would like more options on restricting shipping to give this item on the wishlist some votes. This helps us to identify what features are needed most and prioritize their development.

https://wishlist.webflow.com/ideas/WEBFLOW-I-1999

3 Likes

Thanks @matthewpmunger. Regarding your point of setting up a flat shipping method for each state, I gather you are referring to the wishlist proposal? That doesn’t seem to be possible at the moment unless I’m missing something.

@deepc

My suggestion is what can be accomplished currently. Create an individual shipping method for each state and label it clearly. For example “Shipping to State” where you’ll replace the word state with the name of each state.

To set a price per order use the flat-rate shipping method
To set a price per item use the quantity-based shipping method

Hopefully that makes sense. Also refer to the article on the university that I linked to above.

1 Like

nope, it does not make sense. I was keen on webflow until i found out that you can not set different delivery price based on a state within the country .

This is a majour oversight. My client is only planning on delivering within one city. But they can only choose the whole country? This is absolutely not acceptable!

1 Like

Perhaps custom code might be a solution for you?

Just add an html pattern to the input element. You can do so by adding attributes to the element.

@pepperclip is right! I dug deeper and figured out how this can be solved. In my case a client needed to be able to ship to all USA states and prevent shipping from Louisiana, Tennessee, and Georgia. This can be achieved using the Pattern input attribute.

There might be a cleaner or simple way to do this, but this is how I achieved it.

Select the input field that you want to define only certain values being allowed for. In my case it was the field to enter the “State”. Then create a new attribute with a name of “pattern” and then paste the below snippet in as the value. The below snippet contains every US state as well as every US state abbreviation in both uppercase and lowercase — except Georgia, Louisiana, and Tennessee. This way when a user enters their state, as long as it matches one of those it will let the field entry be successful, but anything not on that list will not go through.

Alabama|Alaska|Arizona|Arkansas|California|Colorado|Connecticut|Delaware|Florida|Hawaii|Idaho|Illinois|Indiana|Iowa|Kansas|Kentucky|Maine|Maryland|Massachusetts|Michigan|Minnesota|Mississippi|Missouri|Montana|Nebraska|Nevada|New Hampshire|New Jersey|New Mexico|New York|North Carolina|North Dakota|Ohio|Oklahoma|Oregon|Pennsylvania|Rhode Island|South Carolina|South Dakota|Texas|Utah|Vermont|Virginia|Washington|West Virginia|Wisconsin|Wyoming|AL|AK|AZ|AR|CA|CO|CT|DE|FL|HI|ID|IL|IN|IA|KS|KY|ME|MD|MA|MI|MN|MS|MO|MT|NE|NV|NH|NJ|NM|NY|NC|ND|OH|OK|OR|PA|RI|SC|SD|TX|UT|VT|VA|WA|WV|WI|WY|alabama|alaska|arizona|arkansas|california|colorado|connecticut|delaware|florida|hawaii|idaho|illinois|indiana|iowa|kansas|kentucky|maine|maryland|massachusetts|michigan|minnesota|mississippi|missouri|montana|nebraska|nevada|new hampshire|new jersey|new mexico|new york|north carolina|north dakota|ohio|oklahoma|oregon|pennsylvania|rhode island|south carolina|south dakota|texas|utah|vermont|virginia|washington|west virginia|wisconsin|wyoming|al|ak|az|ar|ca|co|ct|de|fl|hi|id|il|in|ia|ks|ky|me|md|ma|mi|mn|ms|mo|mt|ne|nv|nh|nj|nm|ny|nc|nd|oh|ok|or|pa|ri|sc|sd|tx|ut|vt|va|wa|wv|wi|wy

Lastly, create one more attribute with a name of “title” and your value can be whatever message you want the user to see when they don’t match one of the correct input values. In my case it was “Enter state abbreviation. We do not ship to Tennessee, Louisiana, or Georgia.”

See the screenshot below where this is all setup.

If anyone has a cleaner solution please drop it below – but this is what I have working for now!

I also put together a quick Codepen where you can see this working and see the values.

2 Likes