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

How to Trigger Shopify Web Pixel for Custom Add to Cart Button in JavaScript?

I’ve added a custom "Add to Cart" button using JavaScript instead of Liquid, but I noticed that Shopify's Web Pixel tracking is not capturing the event when this button is clicked. However, the default Shopify "Add to Cart" button is working fine and triggers the Web Pixel event properly. I’ve identified two possible approaches to solve this issue: 1️⃣ Manually trigger the event so that the Web Pixel function can track my custom button click just like Shopify’s default button....

Aggregate reports

I want to run aggregate reports based on custom fields that I added on the Shopify order made a model. Examples are like sum of orders based on a custom field, sum of returns. What’s the best way to do that while still giving the merchant the ability to control to adjust different filters?

Theme app extension

I have an app with theme app extension, just wanted to ask if it can have multiple liquid files one for each feature and likewise multiple js and css assets?

Database Timeout only in some scenarios

Hi guys. I have an user trying to perform an action in bulk for 3000 images but we get a database timeout every single time. The strange thing is that I'm using the exact same settings but on a 7000 images task and it works normally....
No description

Shopify API version mismatch

How do you fix this? I've getting this error. I already changed it in the partners dashboard the but still encountering this erro. Thanks
No description

Login as Merchant to debug UX issues

Having the ability to login as a merchant to debug UX issues isolated to the Shopify App becomes very important to fix bugs. When I worked at Meta, we had the ability to do that for certain customers if they gave permission to debug their accounts. How are folks achieving this today using Gadget?...

Gelly returning null

Why would gelly return 0 if 1 of all have 0 or null? even though all besides that one have greater then 0. ``` field on bulkOrder { sum(cast(bulkOrderRecipients.totalTax, type: "Number"))...

Reached variant limit errors retrying a lot

I'm trying to figure out why so much usage is being generated when these errors are being hit. I would have expected the retries to happen with exponential backoff and that much less usage would be occurring since it would be spending most of the time waiting for the next retry - but it was running pretty close to 24 hours/day. I have since disabled the sync job and cleared the queue. https://rapapp.gadget.app/edit/development/queues/job-aReCc797o-FefrRYXPCf8...
No description

Getting issue with app frontend of [plugin:vite:import-analysis] Missing "./auto/polaris" specifier

Don't quite understand why I am getting this error... "@gadgetinc/react": "^0.19.0",...

Backups / snapshots of model data

What's the best way to go about storing backups / snapshots of data from all models? Maybe something like a rolling daily snapshot for the last 7 days...

client regeneration not including new global actions

I added a few new global actions, and no mateter how many times I regenrerate the react client, it won't allow me to call the new global actions, only ones proir to today!
No description

How to sync Gadget Production Deploy synced with Frontend deploy

We use Gadget for backend of a theme app extension. We deploy the front end and backend separately with 2 separate commands. This causes the issue that for a very brief period of time, the codebases are not aligned. How are other folks solving this problem successfully?...

Customizing Shopify App Installation Error Page

When a user tries to install our app in their Shopify store and encounters an unknown error, Shopify displays a generic error page (like 404) asking them to contact the developers. Is there a way to customize this error message to provide more specific guidance or support links? If so, how can we implement it?

Customer account extension

I have a custom model, that I want cusomters to only be able to view ones related to their id (record belongs to a s shopify customer), but the shop merchant/admin should be able to view all records beloning to their shop (every record also belongs to a shopifyShop). What should the tenacy look like? https://docs.gadget.dev/guides/plugins/shopify/customer-account-ui-extensions#adding-a-tenancy-filter...

How to make sure to adhere to Shopify's "Protected customer data access" policies

In the "Data protection details" when applying to get access to "Protected customer data access" Shopify asks about data retention policies and especially about storage and if data is encrypted at rest. To calculate a stores revenue, we will need to access the orders of the last 1-2 months / 30 days, which fall under protected customer data, as far as we know. Is there a way in Gadget to adhere to Shopify's standard and guarantee, that the order data is stored encrypted? Or is this done by default anyway? Shopify is not that good at defining what counts as "encrypted" in their eyes 🙂...
No description

Audit Events Admin API Activity Webhook

Hitting an error trying to set up this webhook: Error in field webhookSubscription,callbackUrl: Address uses delivery method 'http' and is not supported https://clhom.gadget.app/edit/development/files/api/actions/auditEvents.js...
No description

Pagination from an external client

I have a front end that fetches products and renders them in an external typescript web app. I don’t want to fetch all products at once, o rathe me grab the first 25, and as the user scrolls pull the next 25 etc. I couldn’t extract the next page or after from a findmany....

Accidentally run the ggt in the wrong repo and now its deleted the files

Not quite sure the best way to get back to what I had before I did this - any recommendations?

How can I disable chunked transfer encoding response header for a specific route?

I have a route that I need to keep compatible with an old API that depends on response-length header. I'm wondering if there's a way to do this? I've tried writing a custom hook for Fastify... it worked for really short responses... like less then 20 bytes, but longer responses always seem to fall back to chunked transfer encoding, and I'm not sure why. I've literally tried at least 30 different attempts at solving this. Any suggestions would be greatly appreciated.