Shipping CODE Discount Function - Checkout Error #280
bkrishnan
started this conversation in
Feedback: Discounts APIs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on creating a Shopify function for creating custom shipping discount codes (Not automatic discounts).
The function gets invoked at checkout correctly when the code is applied
I'm able to see the expected input and output for the function in Shopify Partner's "Run Detail" section for the function. There are no errors there
But I get the following error on the checkout screen as soon as the code is applied:
I followed the standard tutorial to build the discount function but modified it for creating a shipping discount instead: https://shopify.dev/docs/apps/selling-strategies/discounts/experience
Here's the mutation I used to create the discount without any error:
Here is the input for the function that gets invoked successfully at checkout:
Here is the output for the function that gets invoked successfully at checkout
Now because I see no errors in my dev console, partner's dashboard etc., I have no way to figure out where/what the issue is.
I'm also including the graphql error as seen in the browser:
Beta Was this translation helpful? Give feedback.
All reactions