Gadget Developers

GD

Gadget Developers

Build SAAS apps alongside thousands of other Gadget developers. Get help, and offer help to others in the community.

Join

Invalid Api Key error

Hi, A user tried to install our app and we see these error in our logs: unable to get discountNodes resource...

Access backend API through frontend

Hi, I an new to gadget platform. I was building a feature to tag products from the frontend. I want able to query the products and show them on the frontend. but dont know where to write custom backend logic to tag the products. I need to tag the product select with a same tag....

Can you use react for theme extensions?

Planning on using the vercel AI SDK and use their AI UI which uses react. So hoping I can create the chatbot UI in react and have it as a theme extension so I can use it for multiple stores.

Best way to trigger a sync?

I have actions that run on order creation and order updates, based on whether the external system has stored an ID in the externalPlatformId field (a custom field I added to the order data model). These actions interact with an external system. Now, I want to trigger these actions for all historical orders. How can I accomplish this?...

Deleting existing extensions & adding a new one issue

I forked a project 'wishlist'. It had extensions (UI and online store). I set things up with the shopify CLI. I then deleted the extensions in my IDE. Then I ran 'shopify app create extension' to create a new extension. I gave it a name. I ran 'shopify app dev' and got this message : ...

app proxy from theme app extension

How to use the app proxy to communicate with your backend from a theme app extension?

Fastify maxParamLength option

Is it possible to set the maxParamLength option in a boot/route plugin? Some of my params are over 100 characters long and I need to be able to adjust it, intellisense isn't providing anything super obvious

Error while loading app in Development

Hi, I get this error frequently in development environment but not in production. and it goes away on page refresh. I have been unable to figure out whats the issue. I dont know if its gadget related to heymantle related. Can you please help me? Thank you Uncaught TypeError: Cannot read properties of null (reading 'useState')...

JS Playground - Can I use connections to create a Shopify connection and call Shopify?

Can I call Shopify from the JS playground using const shopifyClient = await connections.shopify.forShopId(shopId);?

Rate limit 10 per minute

Is it possible to enque an action and somehow handle rate limiting if the api endpoint only alows 10 per minute?

update an env variable from a global action

Is it possible to update an env variable from within a global action?

How would you go about the stores email as the gadget email sender?

I've not played with email before so I am unsure how you would set this up? I have forked the wishlist template. I want to send emails when a wishlist product comes back in stock. I want it to send from the stores email address. How would I set that up?...

How can we have conditional scopes based on environment ?

does settings.gadget.ts support writing ts code in that which would get executed ?

Tracking a specific queue completion

Hi all! I have a question about the best way to track a queue completion - I have a feature on my app that runs bulk actions. Every time a bulk action is initiated, a queue with a specific name is created. Currently, what I'm doing is using a model to track the completion - So I'm basically updating a record with the total queues/completed queues, then I trigger an action when total == completed....

Deprecated API Calls

Is this something that Gadget needs to be actioning? I don't believe I have called the WebhookSubscription.privateMetafieldNamespaces endpoint at all...
No description

Enqueue global actions is not receiving the parameters

I don't if what I am doing wrong here but I can't receive my parameters passed in the global action from an enqueue
No description

In App purchases

I have previously used Mantle for Shopify apps subscription however if I want to use an app and charge customers not on a subscription basis but rather have in app purchases, like one time payment for that particular product then how do I implement that like what's the best possible way to do so

Calling http routes inside model actions

Is there a way to call an http route inside the model actions for example, in the create.js onSuccess? Thanks!

Does anyone know if its possible to apply "pickup" to a draft order via api?

I'm trying to add the pikcup to a draft order via api. I am wondering if anyone has ever done this?
No description