phpish / shopify_app-skeleton

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

How can I solve 'no shopify admin panel' after I install this APP #16

Open Mike2100 opened 8 years ago

Mike2100 commented 8 years ago

This issue trouble me several days. I am looking forward to some help.

  1. in the oauth.php file, I add OAUTH_PAGE which is already defined in conf.php $permission_url = shopify\authorization_url($_GET['shop'], SHOPIFY_APP_API_KEY, array('read_content', 'write_content', 'read_themes', 'write_themes', 'read_products', 'write_products', 'read_customers', 'write_customers', 'read_orders', 'write_orders', 'read_script_tags', 'write_script_tags', 'read_fulfillments', 'write_fulfillments', 'read_shipping', 'write_shipping'),OAUTH_PAGE);
  2. Application URL (required) and Redirection URL (required) are all http://c1aecfda.ngrok.io/new_prj/oauth.php
  3. After I use c1aecfda.ngrok.io/new_prj/install.php?shop=XXXXXXX.myshopify.com , [XXXXXXX will be replace my shop name], I can install this APP. But After I click Install button,obviously only App Successfully Installed! ia printed . What I also need is the shopify admin panel a36421411_1462810595066_19

How can I solve this issue ? Thanks @myjanky , or somebody

myjanky commented 8 years ago

You need to send the user to your app now.

On line 31 of oauth.php you can redirect to your app. Try using header("Location: http://c1aecfda.ngrok.io/new_prj/get_shop.php"); die();

instead of echo 'App Successfully Installed!';

Also, if you want to have it embedded in the shop's admin you need to follow this https://help.shopify.com/api/sdks/embedded-app-sdk/getting-started

Mike2100 commented 8 years ago

Dear myjanky. I change to get_shop.php. But still not working. I need the below picture a36421411_1462810595066_19

Mike2100 commented 8 years ago

I mean, After I installed this APP. The picture should be appear

myjanky commented 8 years ago

That is a screenshot of settings->general and not apps->"your installed app"

So after the app is successfully installed go to the installed apps sections and click on your app.

Where does it go?