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

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?

App needs a kick... "is not a function" error

Hi, are there any Gadget staff around that could give my "development" app "welove-core" a kick please? There is weirdness happening with a new queued action I am using, so I tried to temporarily alter the action so I could just run it directly from the playground command line, but I get a TypeError: "api.brightpearlDataUpdates.stockCorrection is not a function" error. I think this maybe due to me moving the action file, I've seen this kind of weirdness before when I have done that. Sometimes a "Restart App" link press sorts it, but it hasn't and I'm stuck at the moment in this state. I'm hoping there may be some behind-the-scenes magic can be done to fix please?...

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

Help with computed field syntax

Hi guys. I'm trying to create a computed field on the shopifyProduct model that checks if the product images have alt texts defined. That field would check all shopifyFile records associated with the product (through the shopifyMedia model) and return 'all' if all files have alt texts defined, 'some' if only some or 'none' if none of them have alt texts....

Use BackgroundActionTrigger instead of APIActionTrigger

Hi all, We have some Background actions in our project where we send out Slack messages in case a Background action fails in their final attempt. We used the trigger element of the ActionContext element to do this....

Full resync of shopifyFulfillmentOrder model

I've only recently passed Shopify's Level 2 review for accessing protected customer data, and I am trying to backfill my shopifyFulfillmentOrder model, but it doesn't seem to be working as I would expect. The process completes almost instantly and no records are updated. I'm running this action: ```...