how to detect shop when user clicks on the app link

Solved
New Member
3 0 0

Developing an app with PHP and AngularJs and all is working.

Question I have is when the store owner goes to apps and then click on the name of my app, shopify redirects it and shows my application in an iFrame.

How can I identify which shop is making the request so i can display the correct data for that specific shop?

0 Likes
Highlighted

Success.

Shopify Staff
Shopify Staff
297 32 63

Hey there,

 

The shop origin is passed to your app in the shop URL query parameter that’s appended to your application URL when your app is loaded inside the Shopify admin.

 

This guide explains how to get and store the shop origin for your embedded app.

0 Likes