No content to show
User Activity
I'd suggest opening a new discussion in the Metafields and Custom Data board, with the mutation you are executing.
Are you sure you are setting the metafield on the discount you are creating? The one associated with your function id? Your metafield is null on your input json as well, so I suspect you are not properly saving the metafield on the discount. You can ...
Things to double check:
The namespace and key in your extension.toml matches the namespace and key of the metafield you set on the discountThe metafield on the discount is a JSON document with a key of `tags` that contains a string array of the tagsT...
You should try the rust-analyzer VS Code plugin. You may need to configure your Function path, like here --
https://github.com/nickwesselman/polyglot-functions/blob/main/.vscode/settings.json
11-30-2023
Hi @Prudentt -- You can find the reference for Shopify Functions query complexity calculation here:https://shopify.dev/docs/apps/functions/input-output#limitations
You use of 3 metafields and `hasTags` gets you to a cost of 12 (they are all 3 each)...
Metaobjects are currently not available as input to Function APIs. We recommend using JSON metafields instead.
Hi @Itachi_Uchiha. You are correct that the API credentials from your shop won't work -- functions can only be used by access tokens from the same app that contains them. You would need to make the API request from an embedded app, such as a Remix ap...
11-02-2023
Don't put the metafield on the product. Put it on the payment customization.
11-02-2023
It sounds like you are setting the metafield on the wrong object. To use variables with a payment customization function, the metafield should be set on the payment customization itself. It appears you are already using that metafield for some functi...
11-02-2023
I responded in your other thread.
11-02-2023
You posted this to another thread:
Your issue is unrelated to input query variables. The metafield on the product is either null, or its value exceeds the limit of 10KB.
11-02-2023
Can you try deleting any javy binaries in the following path, and then try again?
C:\Users\<user>\AppData\Local\binarycache\
If that doesn't solve, can you try running the javy binary directly from this path, after it's downloaded again?
11-02-2023
When you say 'metafield giving null', are you getting the "Variable Definitions Are Missing" error, or is the metafield coming back null in your input query?
These are two different but related uses of metafields in Functions.
https://shopify.dev...
11-01-2023
Any additional detail on the javy failure if you run the following?
npm run dev -- --verbose
11-01-2023
Thanks for posting the solution -- we indeed have a doc update in the works for this.
My Accepted Solutions
Subject | Views | Posted |
---|---|---|
30 | 11-30-2023 08:32 AM | |
44 | 11-27-2023 11:44 AM | |
95 | 11-17-2023 08:15 AM | |
129 | 10-24-2023 10:53 AM | |
193 | 10-13-2023 04:07 PM |