Cart Transform function input exposes no sales-channel context — cannot vary behaviour between POS and online

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 POS printed receipts.

For POS specifically, a UI extension using the Cart API could add the same fee as a plain ungrouped line, which prints far more cleanly. But that path is unusable, because the function cannot be told to stand down for POS carts — it fires, bundles, and the tile correctly declines to touch what the function already applied.

Root cause. The cart.transform.run input root exposes only:

graphql
type Input {
  cart: Cart!
  cartTransform: CartTransform!
  localization: Localization!
  presentmentCurrencyRate: Decimal!
  shop: Shop!
}
```

There is no sales-channel, context, or publication discriminator. A function physically cannot distinguish a POS cart from an online cart, so it is all-or-nothing: the only global control is the app's own kill switch, which would also stop the fee being charged online — where the function is the charging mechanism.

**Ask.** Expose sales channel (or a `context` enum equivalent to the one available to discount functions) on the Cart Transform input, so a function can skip carts originating from a given channel.

That would let a fee app use the function online and a POS UI extension at the till, each with the presentation that suits the surface. It benefits any app adding mandatory fees — deposits, eco-contributions, recycling levies — which are common across the EU.

Context: this is a Dutch bottle-deposit (statiegeld) app. Related receipt-side issue with the same root cause: https://community.shopify.dev/t/pos-receipt-block-editor-has-no-equivalent-of-the-code-editors-line-item-filter-bundle-components-cannot-be-hidden/39144

Quick correction: linesMerge is also available on non-Plus stores.


I’d also like to distinguish between Online Store and POS in cart transform.

I previously asked about distinguishing between Online Store and Draft Orders. The workaround was to use Shopify Flow to set a custom attribute and read it in cart transform.

For POS, you can check for the cart > retailLocation input , the retailLocation will be present if the cart is created on POS : Cart Transform Function API