Pairing ยท 2026-12-04
Can you combine Shopify Functions with internationalization (Markets)? Rules, timing and conflicts
Short answer: yes, Shopify Functions and internationalization (Markets) can run on the same store, and most stores in this niche run both. The work is in the overlap: market pricing adjusts prices per market before checkout; functions then evaluate the cart in the market's context.
How Shopify Functions works
Where Scripts let a Plus store keep its pricing logic in one Ruby file, Functions split that logic into scoped units, one per job, each reading the cart through a GraphQL query and answering with instructions Shopify applies. Discounts, bundles, gateway ordering and delivery rules each get their own function.
How internationalization (Markets) works
Internationalisation on Shopify is a settings layer with operational teeth. The settings take an afternoon: markets, prices, duties. The teeth are everything behind them: returns routing, delivery promises, support in other time zones, a warehouse that knows what a customs form is.
What the evidence says about Shopify Functions
A function takes a GraphQL input query describing the cart and returns JSON instructions. It never touches the page, which is why it is upgrade-safe where script tags were not.
Shopify Scripts stopped running on June 30, 2026, so discount and shipping logic that lived in a store's Ruby scripts had to be re-expressed as functions, usually one function per app rather than one file per store.
Discount functions follow the combination rules set in the admin: whether two discounts can combine is a store setting, not something the function decides on its own.
And about internationalization (Markets)
Duties and taxes calculated at checkout remove the surprise bill at the door, which is the point where cross-border orders get refused and the store eats shipping both ways.
Market pricing is set as percentage or fixed adjustments over the base price, per market, so exchange-rate drift quietly changes a market's real price until someone reviews it.
A market is not just a price list. Returns routing, delivery promises and support hours all change with it, and the checkout will happily sell into a country the warehouse cannot serve well.
Where Shopify Functions goes wrong on its own
The failure mode is porting a Script line by line. Scripts were one file holding every rule a store had; functions are scoped per purpose, so the port is really a re-think of which rules still earn their place. Stores that skip the re-think ship their historical discount mess on newer rails.
Where internationalization (Markets) goes wrong on its own
The failure mode is enabling forty markets in an afternoon because the toggle allows it. The store ends up genuinely serving three countries and pretending to serve thirty-seven, with refused parcels and unanswered support tickets in the long tail.
Where they collide
Market pricing adjusts prices per market before checkout; functions then evaluate the cart in the market's context. A discount function written against home-market price thresholds, free shipping over a hundred, say, misfires in a market where the same basket is priced in a currency with different magnitudes.
The order practitioners run them in
Write thresholds in the function per market or in percentage terms. Test the function in the two largest markets, not just the home one.
A check you can run this week
Inventory every active Script-era rule and map each one to a function type, discount, cart transform, payment or delivery. Rules nobody can explain get deleted in the move, not migrated.
Related reading: Does Shopify Functions help with reverse logistics cost? What the evidence and practitioners say and Does internationalization (Markets) help with reverse logistics cost? What the evidence and practitioners say.
Frequently asked questions
Can you combine Shopify Functions with internationalization (Markets)?
Yes, with the overlap managed. Market pricing adjusts prices per market before checkout; functions then evaluate the cart in the market's context. A discount function written against home-market price thresholds, free shipping over a hundred, say, misfires in a market where the same basket is priced in a currency with different magnitudes.
What breaks first when Shopify Functions and internationalization (Markets) run together?
Market pricing adjusts prices per market before checkout; functions then evaluate the cart in the market's context. Write thresholds in the function per market or in percentage terms. Test the function in the two largest markets, not just the home one.
Which do you set up first, Shopify Functions or internationalization (Markets)?
Write thresholds in the function per market or in percentage terms. Test the function in the two largest markets, not just the home one.
What is the most common mistake with Shopify Functions in this pairing?
The failure mode is porting a Script line by line. Scripts were one file holding every rule a store had; functions are scoped per purpose, so the port is really a re-think of which rules still earn their place. Stores that skip the re-think ship their historical discount mess on newer rails.