diff --git a/conf.php b/conf.php index 503eb40..0ba1b47 100644 --- a/conf.php +++ b/conf.php @@ -2,3 +2,4 @@ define('SHOPIFY_APP_API_KEY', ''); define('SHOPIFY_APP_SHARED_SECRET', ''); + define('SHOPIFY_REDIRECT_URL', ''); diff --git a/oauth.php b/oauth.php index e299f44..bdfc6e4 100644 --- a/oauth.php +++ b/oauth.php @@ -15,6 +15,7 @@ if (!isset($_GET['code'])) { $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')); + $permission_url = $permission_url . '&redirect_uri='.SHOPIFY_REDIRECT_URL; die(""); }