Skip to main content

About location rules

You can use location rules to rank the possible locations for a line item during checkout. In this tutorial series, you'll use Shopify Functions to create a function that prioritizes locations in a particular country defined by the user.

Beta

Location rules is a new feature that's only available by request. Reach out to Shopify Plus Support to know more about your eligibility and the requirements for the beta program.


In this tutorial series, you’ll learn how to do the following tasks:

  • Set up your environment to use functions.
  • Create a location rule function.
  • Add configuration options to your location rule function using metafields.
  • Build a location rule user interface using Admin UI extensions.

Plus

Only stores on the Shopify Plus plan can use custom order routing location rules.

  • You're using API version 2025-07 or higher for your function.

Anchor to Rust-specific requirementsRust-specific requirements

The following requirements are specific to Rust-based development with Shopify Functions.

  • You've installed Rust.

    On Windows, Rust requires the Microsoft C++ Build Tools. Make sure to select the Desktop development with C++ workload when installing the tools.

  • You've installed the wasm32-wasip1 target:

    Terminal

    rustup target add wasm32-wasip1

Follow the tutorial series to go from "Hello World" to a functional location rules experience.


Anchor to Developer tools and resourcesDeveloper tools and resources

Explore the following developer tools and resources to get familiar with building location rules.


Was this page helpful?