# Functions

**URL:** https://community.shopify.dev/c/shopify-functions/15.md

[Latest](https://community.shopify.dev/latest.md) · [Categories](https://community.shopify.dev/categories.md) · [Tags](https://community.shopify.dev/tags.md)

---

## [About the Functions category](https://community.shopify.dev/t/about-the-functions-category/25)

<div class="topic-metadata">

**Author:** [@Liam-Shopify](https://community.shopify.dev/u/Liam-Shopify)\
**Replies:** 0\
**Last updated:** [August 7, 2024, 1:19pm UTC](https://community.shopify.dev/t/about-the-functions-category/25 "2024-08-07T13:19:08Z")

</div>

Discussing Shopify Functions development, deployment, and usage in Shopify apps, including troubleshooting technical issues related to discount, cart transform, checkout validation and delivery functions.

---

## [Markets deprecation](https://community.shopify.dev/t/markets-deprecation/36758)

<div class="topic-metadata">

**Author:** [@bkspace](https://community.shopify.dev/u/bkspace)\
**Replies:** 8\
**Last updated:** [November 29, 2026, 11:45pm UTC](https://community.shopify.dev/t/markets-deprecation/36758 "2026-11-29T23:45:37Z")

</div>

Hey folks, I’ve received an email stating that we need to migrate off ‘deprecated single-market APIs’. The documentation points here (Target buyers by country instead of market ID) A feedback form is provided, but doe…

---

## [2026-07 Cart and Checkout Validation: 30-point limit, final revision binding and fail-closed enforcement](https://community.shopify.dev/t/2026-07-cart-and-checkout-validation-30-point-limit-final-revision-binding-and-fail-closed-enforcement/40179)

<div class="topic-metadata">

**Author:** [@Nordsmie](https://community.shopify.dev/u/Nordsmie)\
**Replies:** 0\
**Last updated:** [November 29, 2026, 11:43pm UTC](https://community.shopify.dev/t/2026-07-cart-and-checkout-validation-30-point-limit-final-revision-binding-and-fail-closed-enforcement/40179 "2026-11-29T23:43:11Z")

</div>

Request for Shopify Functions Engineering – API version 2026-07 Hello Shopify Functions team, We are developing a public Shopify product customization app and have encountered a critical launch blocker involving the Ca…

---

## [Payment customizations: how to detect it's running in Shop Pay checkout?](https://community.shopify.dev/t/payment-customizations-how-to-detect-its-running-in-shop-pay-checkout/39908)

<div class="topic-metadata">

**Author:** [@Pridentt](https://community.shopify.dev/u/Pridentt)\
**Replies:** 7\
**Last updated:** [November 26, 2026, 5:29pm UTC](https://community.shopify.dev/t/payment-customizations-how-to-detect-its-running-in-shop-pay-checkout/39908 "2026-11-26T17:29:47Z")

</div>

We’ve noticed that the Shop Pay checkout was recently updated, and it now includes a modal that lists both Shopify Payments methods and third-party payment methods: Also we noticed that normal payment customization f…

---

## [Empty discountAllocations on lineMerge Items](https://community.shopify.dev/t/empty-discountallocations-on-linemerge-items/39901)

<div class="topic-metadata">

**Author:** [@bxbxbx](https://community.shopify.dev/u/bxbxbx)\
**Replies:** 1\
**Last updated:** [November 23, 2026, 4:14pm UTC](https://community.shopify.dev/t/empty-discountallocations-on-linemerge-items/39901 "2026-11-23T16:14:45Z")

</div>

Hi there, I am using a lineMerge action with a cart transform function on a Shopify plus shop. I added a standard product off discount and a custom discount function for the parent line item (multiple stacked by discoun…

---

## [\[Bug\] Automatic order discount uses cart currency for the minimum subtotal](https://community.shopify.dev/t/bug-automatic-order-discount-uses-cart-currency-for-the-minimum-subtotal/39939)

<div class="topic-metadata">

**Author:** [@M\_Kia](https://community.shopify.dev/u/M_Kia)\
**Replies:** 7\
**Last updated:** [November 22, 2026, 12:37pm UTC](https://community.shopify.dev/t/bug-automatic-order-discount-uses-cart-currency-for-the-minimum-subtotal/39939 "2026-11-22T12:37:55Z")

</div>

I’m testing an automatic discount and a discount code using our function. Both offer £500 off orders over a £4,000 minimum subtotal. The shop currency is GBP, and the checkout currency is CAD. Shopify’s documentation sa…

---

## [Exclude an app-created gift card product from merchant discount codes (without giftCard: true)](https://community.shopify.dev/t/exclude-an-app-created-gift-card-product-from-merchant-discount-codes-without-giftcard-true/38164)

<div class="topic-metadata">

**Author:** [@talktohenryj](https://community.shopify.dev/u/talktohenryj)\
**Replies:** 10\
**Last updated:** [November 21, 2026, 5:26am UTC](https://community.shopify.dev/t/exclude-an-app-created-gift-card-product-from-merchant-discount-codes-without-giftcard-true/38164 "2026-11-21T05:26:11Z")

</div>

Hi everyone, We build a gift card app. Our app creates gift card products with productCreate, and when one is purchased, our app issues the gift card itself using giftCardCreate and emails it with our own designs and sc…

---

## ["Staff attribution couldn't be included for some bundle items" in POS after a Cart Transform linesMerge](https://community.shopify.dev/t/staff-attribution-couldnt-be-included-for-some-bundle-items-in-pos-after-a-cart-transform-linesmerge/39893)

<div class="topic-metadata">

**Author:** [@Anton](https://community.shopify.dev/u/Anton)\
**Replies:** 1\
**Last updated:** [November 20, 2026, 4:26pm UTC](https://community.shopify.dev/t/staff-attribution-couldnt-be-included-for-some-bundle-items-in-pos-after-a-cart-transform-linesmerge/39893 "2026-11-20T16:26:28Z")

</div>

Our Cart Transform function merges bundle component lines with linesMerge. In Shopify POS, when “Add staff to sale” is set to Automatic, POS shows this banner right after the merge, and the merged line loses the staff at…

---

## [Any way to force users from /checkout to /cart?](https://community.shopify.dev/t/any-way-to-force-users-from-checkout-to-cart/39702)

<div class="topic-metadata">

**Author:** [@Dave\_Able](https://community.shopify.dev/u/Dave_Able)\
**Replies:** 5\
**Last updated:** [November 20, 2026, 10:21am UTC](https://community.shopify.dev/t/any-way-to-force-users-from-checkout-to-cart/39702 "2026-11-20T10:21:27Z")

</div>

I’m managing a Shopify site that uses a booking process instead of the traditional storefront with a checkout. Somehow a very small set of random users it reaching /checkout. I can tell based on MS Clarity recordings. …

---

## [Is there a way to identify where a checkout validation was triggered?](https://community.shopify.dev/t/is-there-a-way-to-identify-where-a-checkout-validation-was-triggered/38308)

<div class="topic-metadata">

**Author:** [@Aravind\_R](https://community.shopify.dev/u/Aravind_R)\
**Replies:** 6\
**Last updated:** [November 19, 2026, 12:39pm UTC](https://community.shopify.dev/t/is-there-a-way-to-identify-where-a-checkout-validation-was-triggered/38308 "2026-11-19T12:39:03Z")

</div>

Hi everyone, I’m trying to understand if there is a way to identify where a particular checkout validation was triggered from. I have a validation rule that I want to apply only when the customer checks out through the…

---

## [Shopify GraphiQL App 400 error for collaborator accounts](https://community.shopify.dev/t/shopify-graphiql-app-400-error-for-collaborator-accounts/39867)

<div class="topic-metadata">

**Author:** [@Allan\_Emerson](https://community.shopify.dev/u/Allan_Emerson)\
**Replies:** 6\
**Last updated:** [November 19, 2026, 1:30am UTC](https://community.shopify.dev/t/shopify-graphiql-app-400-error-for-collaborator-accounts/39867 "2026-11-19T01:30:09Z")

</div>

Historically, to activate a function on a store where a custom app was installed, the GraphiQL App needed to be installed, and then mutations to look up the function ID, create the discount, etc could be run. Now, the ap…

---

## [InputSizeLimitExceededError when checking against many collections](https://community.shopify.dev/t/inputsizelimitexceedederror-when-checking-against-many-collections/7160)

<div class="topic-metadata">

**Author:** [@Anton](https://community.shopify.dev/u/Anton)\
**Replies:** 8\
**Last updated:** [November 18, 2026, 4:11pm UTC](https://community.shopify.dev/t/inputsizelimitexceedederror-when-checking-against-many-collections/7160 "2026-11-18T16:11:02Z")

</div>

Our function checks whether each item in the cart belongs to specific collections. Some of our larger customers have a high number of collections, and we need to check all of them using inCollections. With 30 items and…

---

## [Ship and pickup in one order is coming. Test now in feature preview](https://community.shopify.dev/t/ship-and-pickup-in-one-order-is-coming-test-now-in-feature-preview/33009)

<div class="topic-metadata">

**Author:** [@Sharon\_Chin](https://community.shopify.dev/u/Sharon_Chin)\
**Replies:** 23\
**Last updated:** [November 17, 2026, 3:51pm UTC](https://community.shopify.dev/t/ship-and-pickup-in-one-order-is-coming-test-now-in-feature-preview/33009 "2026-11-17T15:51:39Z")

</div>

Shopify Plus and Enterprise merchants will soon be able to enable a single checkout experience where customers can choose both shipping and store pickup within the same order. This change impacts how delivery and fulfil…

---

## [Feature Request: Filter inCollections Results to Return Only Matching Collections (Shopify Functions)](https://community.shopify.dev/t/feature-request-filter-incollections-results-to-return-only-matching-collections-shopify-functions/39751)

<div class="topic-metadata">

**Author:** [@bantikyan](https://community.shopify.dev/u/bantikyan)\
**Replies:** 3\
**Last updated:** [November 17, 2026, 12:52am UTC](https://community.shopify.dev/t/feature-request-filter-incollections-results-to-return-only-matching-collections-shopify-functions/39751 "2026-11-17T00:52:46Z")

</div>

Hi Shopify Team, We’re developing a public Shopify discount app that uses inCollections to check product membership across multiple collections. Currently, inCollections(ids:) returns a result for every requested colle…

---

## [Cart Transform cost.compareAtAmountPerQuantity ignores catalog pricing when EEA “hide compare‑at” is enabled](https://community.shopify.dev/t/cart-transform-cost-compareatamountperquantity-ignores-catalog-pricing-when-eea-hide-compare-at-is-enabled/37377)

<div class="topic-metadata">

**Author:** [@Anthony\_SL](https://community.shopify.dev/u/Anthony_SL)\
**Replies:** 5\
**Last updated:** [November 13, 2026, 5:49pm UTC](https://community.shopify.dev/t/cart-transform-cost-compareatamountperquantity-ignores-catalog-pricing-when-eea-hide-compare-at-is-enabled/37377 "2026-11-13T17:49:50Z")

</div>

This is a long and detailed summary, hopefully enough context for River to digest and investigate for you Shopifolk :sweat\_smile: Summary When using a catalog with a percentage increase and rounding rules, cart.lines\[\].…

---

## [Question: Compatibility of Quantity-Based / Tiered Discounts with Shopify Native Subscriptions](https://community.shopify.dev/t/question-compatibility-of-quantity-based-tiered-discounts-with-shopify-native-subscriptions/39470)

<div class="topic-metadata">

**Author:** [@Satish\_Mantri](https://community.shopify.dev/u/Satish_Mantri)\
**Replies:** 5\
**Last updated:** [November 10, 2026, 5:08pm UTC](https://community.shopify.dev/t/question-compatibility-of-quantity-based-tiered-discounts-with-shopify-native-subscriptions/39470 "2026-11-10T17:08:27Z")

</div>

We have a B2B pricing and discount app that supports tiered pricing and offer-based discounts based on configurable conditions. Some of our merchants want to use our app alongside Shopify’s native subscription functiona…

---

## [Red Alert Issue flagged by BFS Reviewer](https://community.shopify.dev/t/red-alert-issue-flagged-by-bfs-reviewer/39420)

<div class="topic-metadata">

**Author:** [@matthew\_parsons](https://community.shopify.dev/u/matthew_parsons)\
**Replies:** 3\
**Last updated:** [November 6, 2026, 10:10am UTC](https://community.shopify.dev/t/red-alert-issue-flagged-by-bfs-reviewer/39420 "2026-11-06T10:10:03Z")

</div>

We’re currently undergoing a Built for Shopify (BFS) review and have encountered a requirement that we’d appreciate some clarification on. Our app allows customers to upload images for printing and uses a color-coded DP…

---

## [Cart transform does not work on custom item (in draft order)](https://community.shopify.dev/t/cart-transform-does-not-work-on-custom-item-in-draft-order/6143)

<div class="topic-metadata">

**Author:** [@soulchild](https://community.shopify.dev/u/soulchild)\
**Replies:** 1\
**Last updated:** [November 3, 2026, 10:36am UTC](https://community.shopify.dev/t/cart-transform-does-not-work-on-custom-item-in-draft-order/6143 "2026-11-03T10:36:46Z")

</div>

Recently Shopify has added support for cart transform function on draft orders. However, the cart transform function does not work on custom items on draft order. One of the most common use case requested by Plus mercha…

---

## [\[Bug\] Cart validation functions - Apple Pay / Google Pay shows unhelpful validation error on product/cart page](https://community.shopify.dev/t/bug-cart-validation-functions-apple-pay-google-pay-shows-unhelpful-validation-error-on-product-cart-page/31935)

<div class="topic-metadata">

**Author:** [@Patrick\_Jakubik](https://community.shopify.dev/u/Patrick_Jakubik)\
**Replies:** 6\
**Last updated:** [November 3, 2026, 6:52am UTC](https://community.shopify.dev/t/bug-cart-validation-functions-apple-pay-google-pay-shows-unhelpful-validation-error-on-product-cart-page/31935 "2026-11-03T06:52:12Z")

</div>

Hey folks, When a buyer uses Apple Pay or Google Pay from the product page or cart page, the validation function is triggered at the checkout completion step and surfaces our validation error - but the error makes no se…

---

## [\[Bug\] Cart validation functions - two issues blocking migration from useBuyerJourneyIntercept()](https://community.shopify.dev/t/bug-cart-validation-functions-two-issues-blocking-migration-from-usebuyerjourneyintercept/31931)

<div class="topic-metadata">

**Author:** [@Patrick\_Jakubik](https://community.shopify.dev/u/Patrick_Jakubik)\
**Replies:** 8\
**Last updated:** [November 3, 2026, 6:51am UTC](https://community.shopify.dev/t/bug-cart-validation-functions-two-issues-blocking-migration-from-usebuyerjourneyintercept/31931 "2026-11-03T06:51:28Z")

</div>

Hey folks, As checkout extensions now default to non-blocking behavior, I understand that cart/checkout validation functions are the way forward for validating checkouts. However, we’ve found two issues that prevent us …

---

## [Differentiating between Online Store carts and Admin/Draft Order carts?](https://community.shopify.dev/t/differentiating-between-online-store-carts-and-admin-draft-order-carts/29432)

<div class="topic-metadata">

**Author:** [@Anton](https://community.shopify.dev/u/Anton)\
**Replies:** 6\
**Last updated:** [November 3, 2026, 4:25am UTC](https://community.shopify.dev/t/differentiating-between-online-store-carts-and-admin-draft-order-carts/29432 "2026-11-03T04:25:52Z")

</div>

Is there any way to detect whether a cart was created from the Online Store (customer-facing) versus the Admin interface (draft orders)? Context: We’re building a cart transform function that applies bundle logic. We ne…

---

## [Hide Local Pickup in checkout based on cart attribute](https://community.shopify.dev/t/hide-local-pickup-in-checkout-based-on-cart-attribute/33036)

<div class="topic-metadata">

**Author:** [@Masumi\_Upadhyay](https://community.shopify.dev/u/Masumi_Upadhyay)\
**Replies:** 4\
**Last updated:** [November 2, 2026, 5:29pm UTC](https://community.shopify.dev/t/hide-local-pickup-in-checkout-based-on-cart-attribute/33036 "2026-11-02T17:29:38Z")

</div>

Hi everyone, I’m working on customizing the checkout experience in Shopify and need some clarification regarding conditional delivery options. I want to show or hide the default “Pickup” (Local Pickup) option in checko…

---

## [Cart Transform function input exposes no sales-channel context — cannot vary behaviour between POS and online](https://community.shopify.dev/t/cart-transform-function-input-exposes-no-sales-channel-context-cannot-vary-behaviour-between-pos-and-online/39145)

<div class="topic-metadata">

**Author:** [@Milo\_van\_Pinxteren](https://community.shopify.dev/u/Milo_van_Pinxteren)\
**Replies:** 2\
**Last updated:** [October 31, 2026, 6:39pm UTC](https://community.shopify.dev/t/cart-transform-function-input-exposes-no-sales-channel-context-cannot-vary-behaviour-between-pos-and-online/39145 "2026-10-31T18:39:31Z")

</div>

Problem. lineExpand is the only Cart Transform operation available outside Shopify Plus (lineUpdate is Plus-only). It necessarily produces bundle components, which render as full line items with a “Part of:” caption on P…

---

## [Creation menu cache](https://community.shopify.dev/t/creation-menu-cache/37429)

<div class="topic-metadata">

**Author:** [@bkspace](https://community.shopify.dev/u/bkspace)\
**Replies:** 8\
**Last updated:** [October 27, 2026, 6:59pm UTC](https://community.shopify.dev/t/creation-menu-cache/37429 "2026-10-27T18:59:27Z")

</div>

Hey team, Over the last few days, we’ve had 3-4 instances where merchants don’t seem to be able to see our applications Discount functions in the ‘create discount’ menu. My assumption is that the fetching of 3rd party …

---

## [\[BUG\] Function deployments with new or changed WebAssembly modules are temporarily blocked](https://community.shopify.dev/t/bug-function-deployments-with-new-or-changed-webassembly-modules-are-temporarily-blocked/38242)

<div class="topic-metadata">

**Author:** [@Pridentt](https://community.shopify.dev/u/Pridentt)\
**Replies:** 28\
**Last updated:** [October 26, 2026, 11:23pm UTC](https://community.shopify.dev/t/bug-function-deployments-with-new-or-changed-webassembly-modules-are-temporarily-blocked/38242 "2026-10-26T23:23:54Z")

</div>

I started getting this error when trying to run shopify app dev: ❌ Error └ Function deployments with new or changed WebAssembly modules are temporarily blocked. Deployments that don't change the WebAssembly module are…

---

## [Retrieving Current Time in Cart and Checkout Validation API](https://community.shopify.dev/t/retrieving-current-time-in-cart-and-checkout-validation-api/3199)

<div class="topic-metadata">

**Author:** [@AMaL](https://community.shopify.dev/u/AMaL)\
**Replies:** 5\
**Last updated:** [October 23, 2026, 7:35pm UTC](https://community.shopify.dev/t/retrieving-current-time-in-cart-and-checkout-validation-api/3199 "2026-10-23T19:35:26Z")

</div>

I noticed that the LocalTime type in the schema.graphql file for Shopify Functions is designed primarily for comparing given times and dates. However, it does not include a direct field or method to retrieve the current …

---

## [Access store credit balance and entered discount codes in Payment customization](https://community.shopify.dev/t/access-store-credit-balance-and-entered-discount-codes-in-payment-customization/27653)

<div class="topic-metadata">

**Author:** [@lezlet](https://community.shopify.dev/u/lezlet)\
**Replies:** 12\
**Last updated:** [October 20, 2026, 1:47am UTC](https://community.shopify.dev/t/access-store-credit-balance-and-entered-discount-codes-in-payment-customization/27653 "2026-10-20T01:47:07Z")

</div>

Hi everyone :waving\_hand:, We’ve been building using the store credit API’s for quite some time and there’s been quite a few requests over the past few months from our merchants which we’ve turned down. For example P…

---

## [Feature request: Expose the native VAT ID number field to Cart and Checkout Validation Functions](https://community.shopify.dev/t/feature-request-expose-the-native-vat-id-number-field-to-cart-and-checkout-validation-functions/35634)

<div class="topic-metadata">

**Author:** [@Gordon\_Kihn](https://community.shopify.dev/u/Gordon_Kihn)\
**Replies:** 2\
**Last updated:** [October 19, 2026, 2:21pm UTC](https://community.shopify.dev/t/feature-request-expose-the-native-vat-id-number-field-to-cart-and-checkout-validation-functions/35634 "2026-10-19T14:21:01Z")

</div>

Hi Shopify team, I would like to suggest an improvement to the Cart and Checkout Validation Function API. Shopify checkout now provides a native VAT ID number field in checkout, for example under the delivery address s…

---

## [Payment Customization Input: Is purchasingCompany available only for Shopify Plus stores?](https://community.shopify.dev/t/payment-customization-input-is-purchasingcompany-available-only-for-shopify-plus-stores/15517)

<div class="topic-metadata">

**Author:** [@Pridentt](https://community.shopify.dev/u/Pridentt)\
**Replies:** 3\
**Last updated:** [October 17, 2026, 10:30am UTC](https://community.shopify.dev/t/payment-customization-input-is-purchasingcompany-available-only-for-shopify-plus-stores/15517 "2026-10-17T10:30:48Z")

</div>

I assumed that in payment customizations Input, I would get the Company name entered at checkout: In the buyerIdentity.purchasingCompany.company.name. But I’m getting purchasingCompany as null: The Shopify help p…

---

## [Discounts in partial rollouts: no way for extensions or Functions to know what the current buyer gets](https://community.shopify.dev/t/discounts-in-partial-rollouts-no-way-for-extensions-or-functions-to-know-what-the-current-buyer-gets/38318)

<div class="topic-metadata">

**Author:** [@yannlombard](https://community.shopify.dev/u/yannlombard)\
**Replies:** 2\
**Last updated:** [October 13, 2026, 8:02am UTC](https://community.shopify.dev/t/discounts-in-partial-rollouts-no-way-for-extensions-or-functions-to-know-what-the-current-buyer-gets/38318 "2026-10-13T08:02:31Z")

</div>

Hi, We build a cart progress bar app (“spend $X, get 10% off / a free gift”). Each tier is its own automatic app discount backed by the same discount Function. A theme app extension and a checkout UI extension tell buye…

[Next page](https://community.shopify.dev/c/shopify-functions/15.md?page=1)
