phpish / shopify_app-skeleton

Skeleton Shopify App project using phpish/shopify
94 stars 41 forks source link

App is not opeing in iframe #18

Open webrndexperts opened 8 years ago

webrndexperts commented 8 years ago

Hello Larry,

I have created partner account and created app. Here' app setting screenshot: edit app settings for ab testing - shopify partners 2016-05-18 16-28-28 I have read all issues thread and have set redirect uri same as in app. Here's the oauth.php file screenshot: app code file

After installing app or clicking app in store opens redirect uri in browser instead of iframe. Please let me know what I am doing wrong.

Thanks in advance.

myjanky commented 8 years ago

On the get_products.php code you need to add some JS. Something like this <script type="text/javascript"> window.top.location.href = REDIRECT_URL; </script> You should also update your conf.php to define REDIRECT_URL so you can reuse the var and not have to type out a long URL.

Then you can add this after to set up the API data. https://help.shopify.com/api/sdks/embedded-app-sdk/initialization

also see this for a style that works with the admin. http://seaff.microapps.com/