A developer successfully built and tested a shipping discount app in a development environment but is struggling to implement it on a live Shopify store.
Core Issue:
The app uses a Function extension (shipping-discount) deployed via Shopify CLI
Creating a discount through the admin panel redirects to the app instead of generating a new discount
Developer is uncertain how to use GraphQL on the live shop to configure discounts
Suggested Solution:
Use GraphQL tools like Postman or the GraphiQL app to modify discount configurations
Connect the Function extension through the Discounts > Create process in the admin
Current Problem:
The deployed function isn’t appearing when queried using shopifyFunctions GraphQL query
Despite deploying with shopify app deploy, the function may not have registered properly
The discussion remains unresolved with the developer investigating why their function extension isn’t being recognized by the live shop.
Summarized with AI on October 27.
AI used: claude-sonnet-4-5-20250929.
I’ve made a shipping discount app using a tutorial and a dev shop to test. The tests ran fine and now I installed the app on a live shop. But I’m unsure how to add the discount. In the tutorial graphql was used to set up the discount. Trying to create a discount in the admin and choosing the app as a type just links back to the app itself, it doesn’t create a new discount.
Is there any other way than using graphql? How do I use graphql on a live shop?
To offer a discount in a live shop, your application must integrate a Function extension such as product-discount or shipping-discount, which can be registered through Shopify Functions. Use the Shopify CLI for deployment, and then connect it within the Discounts > Create process. You will still require GraphQL to modify discount configurations – for this purpose, consider using tools like Postman or the GraphiQL app.
Hi!
Thank you for answering. Yes, I have created a function extension shipping discount. Using the CLI for deployment. Then I installed the app in a live shop.
That part is not the problem, simply actually creating the discount with the created extension on the live shop. How do I connect to the shop to be able to use GraphQL in that case? Is there really no option for a simpler creation of the discount?