# Functions

**URL:** https://community.shopify.com/c/retired-boards/appdev/functions/207.md

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

---

## [Issue with New Customer Accounts Login](https://community.shopify.com/t/issue-with-new-customer-accounts-login/361682)

<div class="topic-metadata">

**Author:** [@AnudeepCVS](https://community.shopify.com/u/AnudeepCVS)\
**Replies:** 7\
**Last updated:** [September 15, 2026, 7:24am UTC](https://community.shopify.com/t/issue-with-new-customer-accounts-login/361682 "2026-09-15T07:24:55Z")

</div>

There seems to be an anomaly in the customer login behaviour for the New Customer Accounts feature. The ‘Customer’ liquid object is Null despite logging in. This problem is not prevalent when using Classical Accounts. H…

---

## [Cart Transform update price action does not appear to work with selling plans](https://community.shopify.com/t/cart-transform-update-price-action-does-not-appear-to-work-with-selling-plans/294074)

<div class="topic-metadata">

**Author:** [@tontinedev](https://community.shopify.com/u/tontinedev)\
**Replies:** 20\
**Last updated:** [September 1, 2026, 4:56pm UTC](https://community.shopify.com/t/cart-transform-update-price-action-does-not-appear-to-work-with-selling-plans/294074 "2026-09-01T16:56:40Z")

</div>

We are using a cart transform functions to support a client that requires applying price changes based on line item properties in the cart. This price change takes effect perfectly for standard items with no selling plan…

---

## [Request to Add Gift Card Payment Option for Admin Order Creation](https://community.shopify.com/t/request-to-add-gift-card-payment-option-for-admin-order-creation/359066)

<div class="topic-metadata">

**Author:** [@JosephFlowers](https://community.shopify.com/u/JosephFlowers)\
**Replies:** 4\
**Last updated:** [July 8, 2026, 3:09pm UTC](https://community.shopify.com/t/request-to-add-gift-card-payment-option-for-admin-order-creation/359066 "2026-07-08T15:09:14Z")

</div>

Dear Shopify Team, I am writing to request the addition of the “Gift Card” as a payment option when creating orders through the Shopify admin interface. Our service center handles a large volume of phone and mail orders…

---

## [Shopify Function not updating cart when login status changes](https://community.shopify.com/t/shopify-function-not-updating-cart-when-login-status-changes/344375)

<div class="topic-metadata">

**Author:** [@fwallace](https://community.shopify.com/u/fwallace)\
**Replies:** 4\
**Last updated:** [June 12, 2026, 9:47am UTC](https://community.shopify.com/t/shopify-function-not-updating-cart-when-login-status-changes/344375 "2026-06-12T09:47:40Z")

</div>

I have a simple product discount function, that checks the tag of a logged in customer and the tag of a product to discount it. It works fine when the customer is logged in and adds to cart, but fails to update the price…

---

## [Favicon not updating](https://community.shopify.com/t/favicon-not-updating/306545)

<div class="topic-metadata">

**Author:** [@AscendingLum](https://community.shopify.com/u/AscendingLum)\
**Replies:** 2\
**Last updated:** [March 4, 2026, 9:10pm UTC](https://community.shopify.com/t/favicon-not-updating/306545 "2026-03-04T21:10:00Z")

</div>

https://ascendinglumination.com/collections/frontpage I’ve updated my new logo in the settings but old logo still shows as favicon. Cleared cache and can’t figure out what else I need to do.

---

## [GraphQL "Function not found." when trying to setup custom app \['discountAutomaticAppCreate'\]](https://community.shopify.com/t/graphql-function-not-found-when-trying-to-setup-custom-app-discountautomaticappcreate/217900)

<div class="topic-metadata">

**Author:** [@charlie\_s](https://community.shopify.com/u/charlie_s)\
**Replies:** 8\
**Last updated:** [February 2, 2026, 9:56am UTC](https://community.shopify.com/t/graphql-function-not-found-when-trying-to-setup-custom-app-discountautomaticappcreate/217900 "2026-02-02T09:56:53Z")

</div>

Hi, I’m currently trying to configure my custom app for a client and set up the ‘discountAutomaticAppCreate’, however receiving the ‘Function not found’ error message. Does anyone have a workaround for this? Thanks, C…

---

## [\[Bug\] Cart attributes are not passed to functions when "Buy it Now" button is used](https://community.shopify.com/t/bug-cart-attributes-are-not-passed-to-functions-when-buy-it-now-button-is-used/330599)

<div class="topic-metadata">

**Author:** [@Sam9516](https://community.shopify.com/u/Sam9516)\
**Replies:** 4\
**Last updated:** [December 16, 2025, 7:40am UTC](https://community.shopify.com/t/bug-cart-attributes-are-not-passed-to-functions-when-buy-it-now-button-is-used/330599 "2025-12-16T07:40:38Z")

</div>

There is one payment customization set on the checkout which hides all the payment options when cart attribute value is set. When product is added to the cart and the checkout button is used, there is no issue, everythi…

---

## [Checking the Apply Store Credit by default](https://community.shopify.com/t/checking-the-apply-store-credit-by-default/367435)

<div class="topic-metadata">

**Author:** [@EcomWithAnthony](https://community.shopify.com/u/EcomWithAnthony)\
**Replies:** 4\
**Last updated:** [December 5, 2025, 3:47am UTC](https://community.shopify.com/t/checking-the-apply-store-credit-by-default/367435 "2025-12-05T03:47:49Z")

</div>

Hi! I would like to check the “Apply Store Credit” checkbox by default in the checkout when a customer has a store credit. Would that be possible using a Shopify Function? I still want the customer to be able to uncheck…

---

## [\[BUNDLE DISCOUNT\] Apply Discount for combination of specifics product collection](https://community.shopify.com/t/bundle-discount-apply-discount-for-combination-of-specifics-product-collection/299790)

<div class="topic-metadata">

**Author:** [@Veer2](https://community.shopify.com/u/Veer2)\
**Replies:** 4\
**Last updated:** [November 26, 2025, 9:31am UTC](https://community.shopify.com/t/bundle-discount-apply-discount-for-combination-of-specifics-product-collection/299790 "2025-11-26T09:31:40Z")

</div>

I’m attempting to create a discount code for a specific combination of products. Essentially, I want to offer a discount when a customer purchases both Product A and Product B together. The discount should only be applie…

---

## [Multiple hasAnyTag elements](https://community.shopify.com/t/multiple-hasanytag-elements/199038)

<div class="topic-metadata">

**Author:** [@agastify](https://community.shopify.com/u/agastify)\
**Replies:** 5\
**Last updated:** [November 10, 2025, 3:59pm UTC](https://community.shopify.com/t/multiple-hasanytag-elements/199038 "2025-11-10T15:59:03Z")

</div>

Hi, I am looking to hide the Cash on Delivery payment method for customers tagged with “tag1”, and hide another payment method for customers tagged with “tag2”. However, I’m having trouble implementing this. I have tri…

---

## [Ways to narrow down discounts query to return AppDiscounts](https://community.shopify.com/t/ways-to-narrow-down-discounts-query-to-return-appdiscounts/225850)

<div class="topic-metadata">

**Author:** [@Filip\_Michalski](https://community.shopify.com/u/Filip_Michalski)\
**Replies:** 5\
**Last updated:** [October 28, 2025, 7:38pm UTC](https://community.shopify.com/t/ways-to-narrow-down-discounts-query-to-return-appdiscounts/225850 "2025-10-28T19:38:52Z")

</div>

Hi Folks, I have created few custom discounts, with the use of Shopify Functions + Apps. I use the discountAutomaticAppCreate to create the discounts in the Admin API. Then I would like to query for those created disc…

---

## [Challenges in Payment Customization API Implementation](https://community.shopify.com/t/challenges-in-payment-customization-api-implementation/305006)

<div class="topic-metadata">

**Author:** [@sebastiandev](https://community.shopify.com/u/sebastiandev)\
**Replies:** 3\
**Last updated:** [October 28, 2025, 11:13am UTC](https://community.shopify.com/t/challenges-in-payment-customization-api-implementation/305006 "2025-10-28T11:13:08Z")

</div>

We have developed an application that is based on the Payment Customization Function API, which allows for conditional operations on shipping payments: Sorting payment method names Hiding/showing selected payment metho…

---

## [Cart Transform Functions Not being applied](https://community.shopify.com/t/cart-transform-functions-not-being-applied/323277)

<div class="topic-metadata">

**Author:** [@ZaniRexha](https://community.shopify.com/u/ZaniRexha)\
**Replies:** 2\
**Last updated:** [October 3, 2025, 12:17am UTC](https://community.shopify.com/t/cart-transform-functions-not-being-applied/323277 "2025-10-03T00:17:03Z")

</div>

Hello everyone, I have been having some issues with shopify functions. I am currently using the cart transform “purchase.cart-transform.run”. I tested it in a dev store and my function gets triggered every time the car…

---

## [I am not getting any orders](https://community.shopify.com/t/i-am-not-getting-any-orders/360112)

<div class="topic-metadata">

**Author:** [@balrajsbhathal](https://community.shopify.com/u/balrajsbhathal)\
**Replies:** 2\
**Last updated:** [September 9, 2025, 9:40am UTC](https://community.shopify.com/t/i-am-not-getting-any-orders/360112 "2025-09-09T09:40:05Z")

</div>

I do Dropshipping , I am from India but selling in US , I have Doaba and spocket , Eprolo products on store but I am not getting orders , why? Please someone help , I really need this going . I spent tons of money on me…

---

## [\[BUG REPORT\] Required parameter missing or invalid: items](https://community.shopify.com/t/bug-report-required-parameter-missing-or-invalid-items/353892)

<div class="topic-metadata">

**Author:** [@kryger1992](https://community.shopify.com/u/kryger1992)\
**Replies:** 3\
**Last updated:** [August 30, 2025, 4:11am UTC](https://community.shopify.com/t/bug-report-required-parameter-missing-or-invalid-items/353892 "2025-08-30T04:11:59Z")

</div>

We experience that our customers are unable to add products to their cart. When they try to add something, a 400 error occurs saying " {"status":"bad\_request","message":"Parameter Missing or Invalid","description":"Requ…

---

## [Using cart transform: Is the custom 'image' supposed to be visible only in checkout?](https://community.shopify.com/t/using-cart-transform-is-the-custom-image-supposed-to-be-visible-only-in-checkout/237644)

<div class="topic-metadata">

**Author:** [@ioio](https://community.shopify.com/u/ioio)\
**Replies:** 7\
**Last updated:** [August 28, 2025, 9:10pm UTC](https://community.shopify.com/t/using-cart-transform-is-the-custom-image-supposed-to-be-visible-only-in-checkout/237644 "2025-08-28T21:10:17Z")

</div>

Hi everyone, I am using a Cart Transform Shopify Function to create customized bundles. In the index.js file I return a merge operation (docs) with the image tag: merge : { cartLines : \[...\], ... …

---

## [\[BUG\] - Corrupted carts when requires\_components products fail to add to cart](https://community.shopify.com/t/bug-corrupted-carts-when-requires-components-products-fail-to-add-to-cart/350206)

<div class="topic-metadata">

**Author:** [@Gabbierea](https://community.shopify.com/u/Gabbierea)\
**Replies:** 2\
**Last updated:** [August 19, 2025, 11:59am UTC](https://community.shopify.com/t/bug-corrupted-carts-when-requires-components-products-fail-to-add-to-cart/350206 "2025-08-19T11:59:43Z")

</div>

Hi, we have a bug with cart transformations that’s preventing customers from being able to add to cart. TLDR: Failing to add a bundle product that is (requires\_components) to cart (because it fails cart transformation …

---

## [CartTransform Merge Operations seem unstable with quantities greater than 1 in-cart](https://community.shopify.com/t/carttransform-merge-operations-seem-unstable-with-quantities-greater-than-1-in-cart/317162)

<div class="topic-metadata">

**Author:** [@nelsonmaze](https://community.shopify.com/u/nelsonmaze)\
**Replies:** 12\
**Last updated:** [October 22, 2024, 4:23am UTC](https://community.shopify.com/t/carttransform-merge-operations-seem-unstable-with-quantities-greater-than-1-in-cart/317162 "2024-10-22T04:23:42Z")

</div>

Describe the bug Line Item issues begin to occur with any multiple of a CartTransform Merge “bundle” being added to the cart (either by incrementing via form submission on the cart page or via cart AJAX API). Adding any …

---

## [checkoutInstalledServerExtensions GraphQL query](https://community.shopify.com/t/checkoutinstalledserverextensions-graphql-query/276653)

<div class="topic-metadata">

**Author:** [@Dardan1](https://community.shopify.com/u/Dardan1)\
**Replies:** 6\
**Last updated:** [October 22, 2024, 3:52am UTC](https://community.shopify.com/t/checkoutinstalledserverextensions-graphql-query/276653 "2024-10-22T03:52:11Z")

</div>

Hey, Earlier this year, I set up a GraphQL request, and there was this endpoint called ‘checkoutInstalledServerExtensions’ in the unstable section. It was handy for checking the Shopify functions installed in stores. Ev…

---

## [Admin page browser extension request: Grouping product tags](https://community.shopify.com/t/admin-page-browser-extension-request-grouping-product-tags/367845)

<div class="topic-metadata">

**Author:** [@HTS](https://community.shopify.com/u/HTS)\
**Replies:** 0\
**Last updated:** [October 20, 2024, 11:27pm UTC](https://community.shopify.com/t/admin-page-browser-extension-request-grouping-product-tags/367845 "2024-10-20T23:27:52Z")

</div>

Hello, I’m wondering if there’s a browser extension (Tampermonkey/Greasemonkey/Violentmonkey) that allows grouping of tags at the admin’s side (new product/edit product/bulk edit/etc.). If none, who can I reach out so t…

---

## [Get price of product in cart line](https://community.shopify.com/t/get-price-of-product-in-cart-line/367249)

<div class="topic-metadata">

**Author:** [@fwallace](https://community.shopify.com/u/fwallace)\
**Replies:** 2\
**Last updated:** [October 18, 2024, 11:35pm UTC](https://community.shopify.com/t/get-price-of-product-in-cart-line/367249 "2024-10-18T23:35:37Z")

</div>

There seems to be no way to get the price of a product variant in a cart line. I can construct the run.graphql like this: query RunInput { cart { lines { quantity merchandise { \_\_typena…

---

## [Cart trouble](https://community.shopify.com/t/cart-trouble/367046)

<div class="topic-metadata">

**Author:** [@TrendyShopin](https://community.shopify.com/u/TrendyShopin)\
**Replies:** 6\
**Last updated:** [October 17, 2024, 10:10am UTC](https://community.shopify.com/t/cart-trouble/367046 "2024-10-17T10:10:57Z")

</div>

Please someone help me to remove this notification ( We process all orders in USD and you will be checkout using the most current exchange rates.)

---

## [Checkout validation](https://community.shopify.com/t/checkout-validation/303210)

<div class="topic-metadata">

**Author:** [@tlb\_mk](https://community.shopify.com/u/tlb_mk)\
**Replies:** 4\
**Last updated:** [October 16, 2024, 4:33pm UTC](https://community.shopify.com/t/checkout-validation/303210 "2024-10-16T16:33:28Z")

</div>

I would like to implement a checkout validation to prevent users to complete purchase when any products in their cart matche a certain case in checkout page. I attempted to do this by using shopify function (https://sho…

---

## [Apply unique discount amounts to each cart line](https://community.shopify.com/t/apply-unique-discount-amounts-to-each-cart-line/366403)

<div class="topic-metadata">

**Author:** [@fwallace](https://community.shopify.com/u/fwallace)\
**Replies:** 1\
**Last updated:** [October 15, 2024, 6:15am UTC](https://community.shopify.com/t/apply-unique-discount-amounts-to-each-cart-line/366403 "2024-10-15T06:15:52Z")

</div>

Question, I have the classic situation where I want to do the 2 for $25 discounts. I can do this in Shopify Scripts (though they time out). I can have some products (with identifying tags maybe ‘2FOR25’) that have vario…

---

## [Get the current applied discount code in a shipping discount function](https://community.shopify.com/t/get-the-current-applied-discount-code-in-a-shipping-discount-function/365298)

<div class="topic-metadata">

**Author:** [@mdog](https://community.shopify.com/u/mdog)\
**Replies:** 5\
**Last updated:** [October 14, 2024, 10:54pm UTC](https://community.shopify.com/t/get-the-current-applied-discount-code-in-a-shipping-discount-function/365298 "2024-10-14T22:54:42Z")

</div>

Is it possible to detect which discount codes are currently applied to the cart within a discount function?

---

## [Combine discount function and cart transformation](https://community.shopify.com/t/combine-discount-function-and-cart-transformation/288099)

<div class="topic-metadata">

**Author:** [@robin\_sch](https://community.shopify.com/u/robin_sch)\
**Replies:** 3\
**Last updated:** [October 14, 2024, 6:33pm UTC](https://community.shopify.com/t/combine-discount-function-and-cart-transformation/288099 "2024-10-14T18:33:42Z")

</div>

Hello Shopify Community, We’re experiencing a challenge involving the interplay of cart transformation and automatic discount functionalities on our store. Specifically, we have set up an automatic discount feature that…

---

## [I cannot get the editor for my site to come up.](https://community.shopify.com/t/i-cannot-get-the-editor-for-my-site-to-come-up/366269)

<div class="topic-metadata">

**Author:** [@Georgialane](https://community.shopify.com/u/Georgialane)\
**Replies:** 0\
**Last updated:** [October 14, 2024, 4:01pm UTC](https://community.shopify.com/t/i-cannot-get-the-editor-for-my-site-to-come-up/366269 "2024-10-14T16:01:18Z")

</div>

I can not get my site to edit. On the app I click online store then edit but it just circle there and never pops up I have tried on browsers too and it doesn’t work. How do I get it to work?

---

## [Cart Transform API wrong results - Price is coming 0 everywhere except on Checkout](https://community.shopify.com/t/cart-transform-api-wrong-results-price-is-coming-0-everywhere-except-on-checkout/366152)

<div class="topic-metadata">

**Author:** [@special\_busines](https://community.shopify.com/u/special_busines)\
**Replies:** 0\
**Last updated:** [October 14, 2024, 6:00am UTC](https://community.shopify.com/t/cart-transform-api-wrong-results-price-is-coming-0-everywhere-except-on-checkout/366152 "2024-10-14T06:00:06Z")

</div>

I am creating a few bundles for my client and it works fine for certain cases. I have followed everything from the Shopify docs and believe it has something wrong on Shopify’s side. Please check the attached function log…

---

## [Is it possible to get Metaobjects entries using Shopify Functions?](https://community.shopify.com/t/is-it-possible-to-get-metaobjects-entries-using-shopify-functions/272161)

<div class="topic-metadata">

**Author:** [@mangrio123](https://community.shopify.com/u/mangrio123)\
**Replies:** 6\
**Last updated:** [October 12, 2024, 8:04am UTC](https://community.shopify.com/t/is-it-possible-to-get-metaobjects-entries-using-shopify-functions/272161 "2024-10-12T08:04:21Z")

</div>

I’m currently developing with the Shopify Cart Transform API, aiming to incorporate line items based on a specified threshold. For instance: If the cart total is equal to or exceeds $50, automatically include a line …

---

## [Setting imageInput on the expand operation for child items in CartTransform Function](https://community.shopify.com/t/setting-imageinput-on-the-expand-operation-for-child-items-in-carttransform-function/321719)

<div class="topic-metadata">

**Author:** [@basilkhan](https://community.shopify.com/u/basilkhan)\
**Replies:** 1\
**Last updated:** [October 11, 2024, 7:19pm UTC](https://community.shopify.com/t/setting-imageinput-on-the-expand-operation-for-child-items-in-carttransform-function/321719 "2024-10-11T19:19:54Z")

</div>

Hey Shopify team, I had a question around the expand operation in cart transform function. Shopify’s function result allows setting of the ImageInput for the group: https://shopify.dev/docs/api/functions/reference/cart-…

[Next page](https://community.shopify.com/c/retired-boards/appdev/functions/207.md?page=1)
