Does Gadget support theme extensions like app blocks for sections that can be placed in a theme? We are building the admin for our app on Gadget but have not seen anything on how we might add theme extensions to embed tools for consumers to use.
Yes, you can call your Gadget app API from within theme extensions! We have a chatbot tutorial that uses theme extensions: docs.gadget.dev/guides/tutorials/ai-product-recommender and documentation on adding your Gadget API client to a theme extension: docs.gadget.dev/guides/plugins/shopify/extensions#theme-app-extensions
@@gadget_dev Oh, that's Awesome! We separated the extensions into a separate repository but would love for all of the app to be in a single space. Assuming extensions is a root folder. Will work on migrating over today.
It looks like Shopify has some docs on making a request from a POS UI extension: shopify.dev/docs/api/pos-ui-extensions/2024-04/server-communication It seems like you would need to use the built-in fetch() to send a request to a Gadget route, or your app's GraphQL endpoint (which can be found in your Gadget app's API docs). Hope that helps! If you want more info, we're happy to have a discussion and send full code snippets in our Discord (ggt.link/discord)!
You can use `yarn shopify deploy` to deploy extensions to Shopify's infrastructure. Shopify has some documentation on the deploy command here: shopify.dev/docs/api/shopify-cli/app/app-deploy
how i can work on existing extension of the app?
i have already deleted the files from my computer and now i want to update the extension
Does Gadget support theme extensions like app blocks for sections that can be placed in a theme? We are building the admin for our app on Gadget but have not seen anything on how we might add theme extensions to embed tools for consumers to use.
Yes, you can call your Gadget app API from within theme extensions!
We have a chatbot tutorial that uses theme extensions: docs.gadget.dev/guides/tutorials/ai-product-recommender
and documentation on adding your Gadget API client to a theme extension: docs.gadget.dev/guides/plugins/shopify/extensions#theme-app-extensions
@@gadget_dev Oh, that's Awesome! We separated the extensions into a separate repository but would love for all of the app to be in a single space. Assuming extensions is a root folder. Will work on migrating over today.
Can you a us how to fetch data from graphql admin from inside of an extension? Trying to do that from a pos ui extension. Thank you
It looks like Shopify has some docs on making a request from a POS UI extension: shopify.dev/docs/api/pos-ui-extensions/2024-04/server-communication
It seems like you would need to use the built-in fetch() to send a request to a Gadget route, or your app's GraphQL endpoint (which can be found in your Gadget app's API docs). Hope that helps! If you want more info, we're happy to have a discussion and send full code snippets in our Discord (ggt.link/discord)!
Deserves more views, very good content
We agree, naturally :)
can anyone tell me how to deploy the extension?
You can use `yarn shopify deploy` to deploy extensions to Shopify's infrastructure.
Shopify has some documentation on the deploy command here: shopify.dev/docs/api/shopify-cli/app/app-deploy
:)
:)