Skip to content

App is not opeing in iframe #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
webrndexperts opened this issue May 18, 2016 · 1 comment
Open

App is not opeing in iframe #18

webrndexperts opened this issue May 18, 2016 · 1 comment

Comments

@webrndexperts
Copy link

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
Copy link

myjanky commented May 18, 2016

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants