Closed lezan closed 8 months ago
Hi @lezan, thanks for reaching out.
Do you have a Shopify Partners account?
If so, you could either choose to distribute your app via a "custom install" link and add it to your store, or choose Public Distribution and leave it as an unlisted app.
See: https://shopify.dev/docs/apps/distribution/select-distribution-method
Feel free to reach out on Discord, my username there is: edlaver
Hello @edlaver, thanks for a so quickly reply! Much appreciated.
Do you have a Shopify Partners account?
Yes, I have.
If so, you could either choose to distribute your app via a "custom install" link and add it to your store, or choose Public Distribution and leave it as an unlisted app.
Custom install is what I did but I thought I was missing something in the App hosted on Cloudflare (or in the App configuration in Shopify) because I always got the "nothing". I thought I was missing autenthification process in the App located in Cloudflare and also URLs section in the Shopify App, so I did some research and find that. I followed it I got "Unauthorized Access:". I tried with incognito mod and I got "The installation link for this app is invalid". Attached two screenshot (sorry for the second one, it is not english, but the message is "The installation link for this app is invalid").
So if I can ask:
Sorry for all my questions!
Hi @lezan, the Shopify app isn't related to the Cloudflare Worker really.
You only need an app in order to set the App proxy
, to create a tunnel from your storefront through to Cloudflare Worker.
That's the only place that should point to the Cloudflare Worker, you should not point at that endpoint in the app setup (other than the App Proxy section).
And you'll only need the app to point to somewhere when you first install it. In order for it to be installed it needs to go through an auth process.
This could be a default app which you create with the Shopify CLI: https://shopify.dev/docs/apps/tools/cli
I haven't used it in a while, but I think from memory when you run it, it creates a tunnel that gives you an HTTPS endpoint that can be used for app installation (e.g. it creates a URL in the App > Configuration > URLs section)
Another option could be to use Gadget.dev . That's probably the simplest way to create an app and get an endpoint you can add to that config section.
See: https://docs.gadget.dev/guides/getting-started/shopify-quickstart
Hello @edlaver, thank you so much for point out!
For some reason I thought I need authorization in the same place of the App proxy, so I was trying to make the Oauth 2.0 process from the itty-router app hosted in Cloudflare Workers. Instead it was so simple:
So easy.
Again, thank you so much the the quickly answers and
Hello there, I am trying to use your repo to run Partytown on Shopify but I am getting some issues mainly because it is my first time with Shopify and App. I am missing how can I install the custom App in my main store. Can you give a direction?
Thanks in advance!