phpish / shopify_app-skeleton

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

How can we change the behavior of Shopify or create an embedded app with PHP? #13

Open daniel-farina opened 8 years ago

daniel-farina commented 8 years ago

Thank you for creating this. There is no documentation or help for PHP and this is a great start. This repository is listed in Shopify's manual as non official solution for PHP

My question: Would I have to create an embedded app if I wanted my app to change the way Shopify processes some information.

For example: What if I wanted to add custom shipping rates to the checkout page, how could we make shopify call this APP every time the shipping address is updated and then have this app send a response back with the information shopify is looking for.

Firs I though web hooks but they only post data from shopify to a external source, I don't think they read, plus if a web hooks fails more than 5 time sit gets deleted.

It would be nice to get this repo back alive and make a fully functional embedded app.

Thank you!

myjanky commented 8 years ago

embedded app is for the back end of shopify. Please read: https://docs.shopify.com/api/sdks/embedded-app-sdk

This is for devs to give admins backend functionality. The checkout is a frontend feature and can not be updated using the API unless you have a Plus account. See this: If you can not create a checkout layout then you can not access the API to change it. screenshot 2016-03-30 at 9 17 25 am You need an App Proxy see https://docs.shopify.com/api/tutorials/application-proxies

Also if anyone is having trouble with this PHP lib due to dependency issues with composer, try ohShopify here on github. It may be the thing to get yall over the hump and then once familiar, come back to this library as it has a cleaner feel to it.

daniel-farina commented 8 years ago

Thank you for your explanation. I finally go this to work. I will try to figure out embedding the app in shopify.

Dan