seandz
Excursionist
Contact Me
Status
Offline
Last Activity
‎08-08-2020 07:30 AM
Topic Started
7
Topics Started
Topic Solutions
3
Solutions
Post Count
52
Posts
Post Kudos
10
Likes

Community Badges

I am writing a React.js script which I would like to attach to the front end via ScriptTag API. Does anyone have a good way of simulating the Shopify front end in a dev environment? My first ...
When inside the shopify admin area, I see the contents of the file at the redirect url. But using Chrome's EditThisCookie extension neither cookie is set. Anyone know why this is? I suspect ...
$ node build/server.js{removed} =====process.env==========Koa listening on port 8080==========inside afterAuth()====={ message: 'from inside afterAuth()', shop: 'removed.myshopify.co...
** My app settings: App URL: https://e33b6c89.ngrok.io/buyusedshopify/us-central1/buyUsedServer/ Redirection whitelisted URL: https://e33b6c89.ngrok.io/buyusedshopify/us-central1/buyUsedS...
This is the initial route handler that I set as my install url in Shopify. I intend for it to request an auth code and redirect the user to the scope granting page (if using createApp() in App Bridge...
// terminalfunctions: Beginning execution of "buyUsedServer"> [object Object] =====accessTokenRequestor req / begin=====> [Error [AppBridgeError]: APP::APP_ERROR::WINDOW_UNDEFINED:...
I want to setup a functional test that includes installing/uninstalling my public app, currently being developed and used on my dev store. At this link: https://partners.shopify.com/118...
Example URL: https://storeName.myshopify.com/products/bedside-table I want to be able to pull information on this product using a script tag. My thinking: 1. Use a script tag t...
I'm new to OAuth and notice when I send the new app installer to the shopify page to approve the app's scopes, the redirect then goes to the localhost's "/" url without being wrapped inside the shopi...
Title error happens as I try to post a script tag to the post url on my dev store. Any idea what the issue is? I think I have both the src and event param correct. Here is my server code app...
I tried to fix this error by converting the app to a sales channel. The error remains. What needs to be done to create a "channel record" ? Google isn't turning anything up on that topic? I ...
errors: '[API] Invalid API key or access token ' + '(unrecognized login or wrong password)' I see this when I try to make a fetch request to the storefront api, passing in the general access tok...
The 100 StoreFront access token limit (https://help.shopify.com/en/api/reference/access/storefrontaccesstoken) makes me believe these tokens should not and can not be given to 1,000s of clients visit...
My understanding of how access tokens are handled suggests the StorefrontAccessToken API depends on a posted script tag to make the request (from Client > Shopify App Server > StoreFrontAccessT...
// documention examplefunction TextFieldExample() { const [value, setValue] = useState('Jaded Pixel');​ const handleChange = useCallback((newValue) => setValue(newValue), []);​ return &lt...
Hi, I'm thinking of listing used items as variants. Or if that's a bad idea I could make a new product. If listing a used item as a variant, I could put the item condition in the va...
I git cloned the react demo project and put my api, secret key and ngrok url into .env but see the error below. This is while running "next dev." The iframe in the admin area of a store simp...
Taken from the npm docs example: https://www.npmjs.com/package/@shopify/koa-shopify-auth const {SHOPIFY_API_KEY, SHOPIFY_SECRET} = process.env; I get how to insert this key locally in my ....
This is for a public shopify app. I'm doing a test request. Cookies are cleared POST request is done with Basic auth. Username is set to the app's API private key. I have tested using the shopify ...
Hi, does anyone have a config they can show that uses Typescript in their shopify app project? I used the Shopify CLI to scaffold an embedded app. The app itself is working but config matters are tou...
I believe the setup is: 1. Setup a webpack server on a port 2. Setup ngrok to reverse proxy to that port 3. Have a koa server with shopify middleware to listen for requests on that port. ...
I notice the Asset API endpoints all want the theme ID as a route parameter: https://help.shopify.com/en/api/reference/online-store/asset Aren't there a ton of shopify themes out there?...
This question is for app develpoment and seeks to avoid theme modifications. Is this how one would add a React.js app after a Cart button on Shopify product pages on the front end: 1. Find a...
Hi, I'm getting started looking through the dev documentation, particularly the Storefront API and how my planned app might add a few HTML/CSS elements to the front end UI. All I'm seeing is back end...
No content to show

User Activity

After test installing my public app (currently in development) on my dev store, the browser navigates to the redirect url and opens it. The app displayes correctly but it's outside of shopify. How should I modify the code below to fix this behavior? ...
Hi, On this page I see an example of how to pass a token to admin users after they are authenticated: https://developers.shopify.com/tutorials/build-a-shopify-app-with-node-and-react/charge-a-fee-using-the-billing-api However the Storefront API requi...
Solved by adding the Accept and Content-Type headers: const response = await fetch(this.scriptTagJsonUrl, { method: 'post' , headers : { "X-Shopify-Access-Token" : this.accessToken , "Accept" : "application/js...
I'm seeing this error as I try to create a script tag from the Koa back end of my Shopify CLI scaffolded app: { errors: { script_tag: 'Required parameter missing or invalid' } } =====responseBody in create st=====Here is the method doing the call. I ...
Hi, I'm mostly a front end dev, I know some Express and Koa is totally new to me. Is this how one gives all users, authenticated and not authenticated, an access token for the front end shopify APIs (I want to send .js files through the ScriptTag Api...
I notice every time I restart ngrok I have a new forwarding url. This then requires updating the app url settings to this new URL. Is this also how you guys are working with the app during development or is there a more efficient way to manage this? ...
Thank you @hassain . I scaffolded an app with shopify cli. Can you give me a sample code snippet to handle requests using your scaffolded koa server to a protected route?
In Chome browser a get request works as expected: // 20191022003422 // https://shopifyStore.myshopify.com/admin/api/2019-07/script_tags.json { "script_tags": [ ] } But my embedded app has trouble logging this same response:<button onClick={a...
Thank you. If I opt to use Cloud Firestore or other external database, is it safe to save auth credentials in a public app? Or can individual store owners see the code of public Shopify Apps they use?
I would like to create a custom table that stores a totally new type of information. As a result I am thinking of storing it on a sub-property of the store metafield. Something like this: store.trades.firstNamestore.trades.lastNamestore.trades.tradeD...
My Accepted Solutions
This widget could not be displayed.
This widget could not be displayed.