phpish / shopify_app-skeleton

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

phpish\shopify\ApiException: [401] Unauthorized #40

Open dmarkKd opened 7 years ago

dmarkKd commented 7 years ago

When am try to get product error throw "https://logicats-demo.myshopify.com/apps/products" here is my link to get the product list.

myjanky commented 7 years ago

Warning: json_decode() expects parameter 1 to be string, array given in /app/get_products.php on line 20

Can you post your file that loads for the get_products.php? Line 20 has a json_decode that is not getting a string.

dmarkKd commented 7 years ago

thanks for reply i will fixed this issue

dmarkKd commented 7 years ago

is there any solution to edit shopify liquid template using my public app????

myjanky commented 7 years ago

Yes. https://help.shopify.com/api/reference/asset

use the asset object after getting the ID of the theme you want to modify. (you can check which theme is published, get the ID and then get a list of that theme's assets.)

Although if you are just wanting to put some JS in there look at the scripttag API.