Tasawer Khan
Tasawer Khan

Reputation: 6148

Show a shipping rate based on zip, province and country in shopify

I would like to show a shipping rate if zip code matches a number of zip codes, and county is GB and hide that shipping rate otherwise. Shopify has a sample but

https://help.shopify.com/en/manual/checkout-settings/script-editor/examples/shipping-scripts#show-rates-for-a-specific-zip-code-province-and-country

Any help will be highly appreciated.

Upvotes: 0

Views: 604

Answers (1)

David Lazar
David Lazar

Reputation: 11427

If you are not on Plus, your best bet is to register a CarrierService. Shopify will send all checkouts to that service. In your service, you audit the payload. Depending on the contents, like country, zip etc, you can either return a rate or not. This solves your problem.

Upvotes: 1

Related Questions