php - Getting shopify storeURL from shopify app
I have created a public app and embeded it into Shopify store. I dont have access to anything outside my code.
Store url when using app: "https://namestore.myshopify.com/admin/apps/name-app"
I have use
What I want: A way to get the parenturl from the code which is inside an Iframe
This is passed as a parameter to your app proxy.
From the documentation (https://help.shopify.com/en/api/guides/application-proxies#handling-proxy-requests):
GET /proxy/extra/path/components?extra=1&extra=2&shop=shop-name.myshopify.com&path_prefix=%2Fapps%2Fawesome_reviews×tamp=1317327555&signature=a9718877bea71c2484f91608a7eaea1532bdf71f5c56825065fa4ccabe549ef3 HTTP/1.1 Host: proxy-domain.com X-Forwarded-For: 18.104.22.168
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.