Shopify has no fee field on its pickup settings. To charge for local pickup you need a Local Pickup Delivery Option Generator function, which returns a cost for each pickup option at checkout. Three conditions apply: the store is on Shopify Plus, the function ships in a custom app, and the API exists only in the unstable version (checked November 2026).
Where is the local pickup fee setting in Shopify?
There isn’t one. The pickup in store settings let a merchant turn pickup on for a location, choose an expected pickup time, allow store transfers and write the instructions that go into the “Ready for pickup” email. Price is not among them, so every pickup option Shopify generates on its own is free.
The usual workaround in the community forums is a shipping rate named after the shop, something like “Collect from Shoreditch (GBP 2.50)”. It does show a price. But it sits among the shipping rates, so there is no pickup location behind it and none of the pickup notification flow that real pickup has.
Pricing a genuine pickup option is one of the documented use cases of the Local Pickup Delivery Option Generator Function API, and the API is the only way to do it. Shopify’s own example is a USD 5 charge for pickup within two hours, free otherwise.
Who can use the Local Pickup Delivery Option Generator API?
Fewer than the tutorial implies, since its requirements mention Plus but not apps. The API reference says only custom apps installed on Shopify Plus stores can use it, and merchants must be in the Partners programme to deploy their own custom app. A public app from the App Store cannot offer this, and neither can a standard-plan store.
The version is the bigger catch. We requested the reference page for every stable Functions version from 2026-01 to 2026-10, and each one says the API “isn’t supported”. Only unstable documents it, and the Shopify AI Toolkit’s GraphQL validator lists unstable as the only version it has a schema for. Shopify’s versioning page describes unstable as a version where “features can be added or removed at any time with no guarantee of release” and says to use it for early testing only. So a pickup-fee function is production code written against an API Shopify has not committed to keeping stable.
The compatibility table rules out more. Storefront API checkouts (headless), B2B, POS, subscriptions, pre-orders and order edits are all listed as unsupported. Accelerated checkout is only partly supported: decelerated checkouts work, the payment sheet does not. If most of the client’s orders come through B2B or a Hydrogen storefront, the function will not run for them.
What happens to pickup when the function is active?
Your function takes over pickup completely. Merchants connect it under Settings, Shipping and delivery, Pickup in store, Pickup service, and the Help Center says a pickup service replaces the existing pickup settings. The output has a single operation, add, so the options your function adds are the pickup options. A location you leave out is not offered.
The official tutorial’s sample maps every entry in input.locations to a pickup option. The reference describes that list as locations “that can fulfill items in the cart or that offer local pickup”, which means a warehouse that ships but has pickup switched off can still be in it. Each location carries localPickup { enabled }, so filter on it. Otherwise the merchant’s admin switch stops doing anything.
Store transfers need a decision as well. The input includes fulfillmentGroups[].inventoryLocationHandles, the locations stocking each group of items, and Shopify’s “limit available pickup locations” example uses it to offer pickup only where everything is already on the shelf. Copy that example and you lose the “pickup available after transfer” behaviour the merchant may have set up. Ask the merchant before you filter by stock.
How do you charge a different fee per location?
Keep the fee out of the code. Put it in a location metafield the merchant can edit (custom.pickup_fee here, a decimal in the shop’s currency) and read it in the input query:
query RunInput {
presentmentCurrencyRate
locations {
handle
localPickup {
enabled
}
pickupFee: metafield(namespace: "custom", key: "pickup_fee") {
value
}
}
}
The function then filters, converts and returns one add operation per pickup location:
// @ts-check
/**
* @typedef {import("../generated/api").RunInput} RunInput
* @typedef {import("../generated/api").FunctionRunResult} FunctionRunResult
*/
/**
* @param {RunInput} input
* @returns {FunctionRunResult}
*/
export function run(input) {
const rate = Number(input.presentmentCurrencyRate);
const operations = input.locations
.filter((location) => location.localPickup.enabled)
.map((location) => {
// Fee is stored in the shop's currency, e.g. "2.50".
const fee = Number(location.pickupFee?.value ?? 0);
const shopFee = Number.isFinite(fee) && fee > 0 ? fee : 0;
return {
add: {
cost: Math.round(shopFee * rate * 100) / 100,
pickupLocation: {
locationHandle: location.handle,
},
},
};
});
return { operations };
}
title and pickupInstruction are left out on purpose. The reference gives them defaults (the location’s name and its expected pickup time setting), so the merchant’s admin text keeps working, and you only set them when the copy has to change with the cart.
A fee that cannot be parsed falls back to free. Number("2,50"), a comma typed in the admin, gives NaN, and the check turns that into an explicit zero instead of passing NaN into the output.
Why does the fee come out wrong for overseas buyers?
The API reference defines cost as “the cost of the delivery option in the currency of the cart”. Shopify’s tutorial hard-codes 2.99, which works for a single-currency shop and charges 2.99 of whatever the buyer is paying in for everyone else. A GBP 2.50 fee becomes EUR 2.50.
Shopify’s localisation guidance for Functions gives the fix: store the configured amount in the shop’s currency and multiply it by presentmentCurrencyRate. The input delivers that rate as a string, so parse it before doing arithmetic. The sample rounds to two decimal places, which suits GBP, EUR and USD. If the store sells in a currency with no minor unit, check the rounding against that market before go-live.
Will a time-based pickup fee update during checkout?
Not straight away. Shopify runs this function when delivery-related cart data changes, such as the lines or the delivery address. The reference adds that if Shopify “already has a result for that data from the last 15 minutes”, it reuses that result. The delivery option caching page lists the pickup generator as a cached extension point, while delivery customisation functions are not cached.
This matters for the “free after 2pm” kind of rule. The input exposes shop.localTime with helpers such as timeBetween, so you can write one. A buyer who opened checkout at 13:55, though, may still see the pre-2pm price at 14:05, because nothing delivery-related changed and the cached result is reused. If the merchant needs the cutover to be exact, a time-based price is the wrong tool.
How do you test it before a Plus store exists?
The function is a pure module that takes an input object and returns an output, so you can run it in Node with no Shopify connection. We ran the sample above with Node 24’s built-in test runner against three locations: one with a GBP 2.50 fee, one with pickup disabled, one with no metafield, at a rate of 1.17. It returned two operations, the disabled location gone and the fees at 2.93 and 0. An unparseable metafield value came back as 0. The input query validated against the unstable schema and was rejected for 2026-10, the current stable version, for the reason above.
That proves the logic, not checkout behaviour, which needs shopify app dev on a development store and a pickup service activated in the admin. Our guide to testing Shopify Functions locally covers shopify app function run and replaying real executions. If the request turns out to be about renaming or hiding rates rather than pricing pickup, a delivery customisation function is the smaller job and runs on a stable API version.
Should you build a pickup fee function?
For a Plus merchant whose locations really do cost different amounts to staff, yes. Build it with the fee in a location metafield, filter on localPickup.enabled, convert through presentmentCurrencyRate, and watch the developer changelog for changes to the unstable schema, so an API change does not show up first as a broken checkout.
For anyone else, no. A standard-plan store cannot run it, a public app cannot ship it, and a headless or B2B checkout will not call it. In those cases the honest options are a free pickup option, or the price folded into the products that cost more to hand over.
We build Shopify Functions and checkout logic for Plus merchants. If you are weighing up whether a delivery rule belongs in a Function, an app or the admin settings, our Shopify development team can scope it with you.