I’m beginner as shopify
partner and I want to get parameters from home page using proxy app.
Url : mystore.myshopify.com/client_id=value
I want to get client_id via shopify
app. What I have to do in path_prefix in proxy configuration.
Here more detail about what i want to get the parameters that I want with proxy configuration and nothing received when visting home page
parameters that I want:
Proxy configuration:
Thanks in advance.
2
Answers
Here is the solution.
is to created a file Js in theme and send it via app proxy like what i do here.
`var client_id = getUrlParameter('client_id'); jQuery(function($){
Thanks anyways
In your Partner setup of the proxy choose /tools, /a, /community or /apps and then some resource name. For example:
Set the URL to be your App’s actual endpoint… https://foo.bar.com/yooba
Now you expect Shopify to send requests to your App’s /yooba route.
Note that the JS you use will now be a GET or POST to /apps/client
Be careful with App Proxy. You can waste a lot of time with it. And note that the merchant can change the Proxy URL and break it anytime they want.