Hide Shipping Method depend on Adress

Solved
Cpuga
Excursionist
27 0 3

Hello, im adding a store delivery option and i need to hide my courrier Shipping method depending on Store Adress.

Its possible do this with any Script?

Accepted Solution (1)
playwright-mike
Shopify Partner
72 18 33

This is an accepted solution.

Sorry, not sure what happened there. Let me try to attach again.

Playwright | Create Shopify Scripts without writing code | https://playwrightapp.com
- Was my reply helpful? Please Like and Accept Solution.

View solution in original post

Replies 12 (12)
playwright-mike
Shopify Partner
72 18 33

Hi ,

Yep, this possible to do using Scripts. I'm happy to generate one for you. Two questions for you:

  1. What is the exact name of the courier shipping rate?
  2. What type of addresses do you want to exclude? (by country, province, street address?)

Best,
Matthew

Playwright | Create Shopify Scripts without writing code | https://playwrightapp.com
- Was my reply helpful? Please Like and Accept Solution.

Cpuga
Excursionist
27 0 3

Thanks you for reply.

This is the rate i need to hide 

Cpuga_0-1630340634530.png

 

when we select this adress

Cpuga_1-1630340781849.png

 

 

This is how its working right now so i need to hide the one i told u.

Cpuga_2-1630340808066.png

 

 

playwright-mike
Shopify Partner
72 18 33

Give this a try and see if it works for you. You can adjust some of the settings at the bottom of the script. If you need a different configuration, just let me know and I can use Playwright to create a new one.

Best,
Matthew

Playwright | Create Shopify Scripts without writing code | https://playwrightapp.com
- Was my reply helpful? Please Like and Accept Solution.

Cpuga
Excursionist
27 0 3

Its not working

Cpuga_0-1630342177002.png

 

Cpuga_1-1630342187142.png

 

Cpuga
Excursionist
27 0 3

Cpuga_0-1630342337674.png

 

playwright-mike
Shopify Partner
72 18 33

Hi Cpuga, 

Make sure that you are creating a "Shipping Script" when you are using the script editor (the default may be Line item). See the screenshot below:

Screen Shot 2021-08-30 at 1.32.44 PM.png

Also be sure that the address and shipping rate name are accurate. I hope that is helpful.

Matthew

Playwright | Create Shopify Scripts without writing code | https://playwrightapp.com
- Was my reply helpful? Please Like and Accept Solution.

Cpuga
Excursionist
27 0 3

Now its working!! thanks you so much!

How can i add more addresses??

Cpuga_0-1630357899727.pngCpuga_1-1630357918241.png

 

 

playwright-mike
Shopify Partner
72 18 33

Hey Cpuga,

I've attached an example of multiple addresses. Feel free to give the app a try if you want to manage more configurations.

Also, marking this solution as accepted will help others in the future.

Best,
Matthew

Playwright | Create Shopify Scripts without writing code | https://playwrightapp.com
- Was my reply helpful? Please Like and Accept Solution.

Cpuga
Excursionist
27 0 3

Where did u attatch the example with multiple adresses?

playwright-mike
Shopify Partner
72 18 33

This is an accepted solution.

Sorry, not sure what happened there. Let me try to attach again.

Playwright | Create Shopify Scripts without writing code | https://playwrightapp.com
- Was my reply helpful? Please Like and Accept Solution.

aprilp777
Visitor
2 0 0

Hi Mike!

I know this comment is coming almost two years after this post but i'm having a similar issue and wondering if this script would work or if there's something similar.

I'm trying to hide the curbside pick up option from any address that isn't local to us in ontario.

Thanks in advance

April

 

Sam9516
Shopify Partner
30 1 12

Now, in 2023, you can easily achieve this, even for Shopify basic store. You will need to use the BeSure Checkout Rules app. Here are the steps,

 

1. Create a rule for "Hide shipping methods".

2. Select the condition of "Address line" and enter the word(s) which when present in the address, should hide the given shipping methods.

3. Enter the names of the shipping methods which you want to hide.

 

Click on create rule and done. Here is an article with detailed steps, https://dub.sh/address-hide