Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
Hi All,
we are trying to test our new developed sales channel Shopify app
we installed the new app on a testing store but when being redirected to the store's dashboard there is no optional sales channel accept the online store.
we expected to see the new sales channel app in the menu as well as an optional sales channel for the seller ( tester in our case)
could anyone indicate if this was supposed to be the case or if there is a documentation about how to test a new developed sales channel app (need to test checkout api and inventory adjustments in real-time using the api
Tnx
Itai
Can you provide the app name? Has it been marked as a sales channel in the app settings?
Scott | Developer Advocate @ Shopify
Hi
The app's name is "elolos"
it has been configured and approved as a sales channel
+
has an active navigation link from the Shopify seller's admin
Check out the attached screenshots taken just now
Itai
Thanks @Itaima,
I just tested with a demo sales channel app, the app appears under 'Sales Channels' in the admin when testing on a development store.
The elolos app doesn't appear to have any installs - is the install process completing successfully?
Scott | Developer Advocate @ Shopify
Hi,
check this out
https://www.loom.com/share/3f491d75bac5409a8bc767a5acffbf63
showing how I installed the app on a new dev store that had no apps installed beforehand and after the installation, it shows a new app install but not a sales channel added to the admin dashboard/menu as we would have expected.
the app is set up as a sales channel in the app settings + has an icon and a navigation link configured in the sales channel app settings
am I missing something here ?
Itai
Hey Itai,
Thanks for the recording.
I notice the partner account has two apps with the same name. It appears eLolos (2883757) is installed, not the eLolos sales channel (3394049).
The first redirect from Shopify, when you test the sales channel app is to:
https://shopifyrouter.elolos.com/?hmac=...&shop=...×tamp=... (note this is the same URL used by the other app).
Then, your app redirects to the Shopify app install confirmation page:
https://testing-store-15-4-2020.myshopify.com/admin/oauth/authorize?client_id=d59a97...&scope=...&state=...&redirect_uri=...
Note the client_id (API key) value is for the non-sales channel app (2883757).
Scott | Developer Advocate @ Shopify
Oh,
Got it.
so changing the name of one app should solve it ? (adding an underscore for example )
or should we change the entire callback URL ?
itai
There aren't any identifiers on the initial redirect, so a separate URL might make the most sense.
Scott | Developer Advocate @ Shopify
You'd also need to update the API keys, which would break the old app for any existing users.
Scott | Developer Advocate @ Shopify
Done
Works !
amazing tnx
now we are facing a new error :
https://www.loom.com/share/5d9209b92f024344a96da44cfa7705fd
does it seem like a wrong ref on our side?
Itai
Interesting. Have you tried removing the sales channel + reinstalling?
Scott | Developer Advocate @ Shopify
Hi Scotty,
yes
still the same issue
video of the entire process attached
https://www.loom.com/share/61d168ee8b424d7789d7b6ce98d9a448
Itai
Ah, it's because of this link in your embedded app settings.
Scott | Developer Advocate @ Shopify
what should be the link ?
when we ass the actual link that is used do access the sales channel dashboard directly it does not work ....
Given the app url is http://shopifyrouter.elolos.com/, the link will need to start with this URL.
If you've only got one link, you could probably remove it, which means the app will just load `http://shopifyrouter.elolos.com/`
Scott | Developer Advocate @ Shopify
Hi Scotty,
General question regarding a Shopify sales channel app :
just making sure I understand the flow correctly :
1- merchant install sales channel app on Shopify app store
2-merchant gives permission to the Shopify sales channel app to read products listing etc
3-user is being redirected to our Shopify sales channel dashboard
4- a list of his products can be shown (we will read it directly from his listing API )
5-merchant will select manually which products from his listing he would like to sell via our sales channel + special discount and items amounts limit
6-from this point our sales channel app is in sync with the merchant's listing so items that will be added / removed from the merchant's listing will be updated using the listing API and next time the merchant will open our sales channel products page in our dashboard he will see an updated list of his products to choose from ( which item to sell via our sales channel app)
* the main question here is regarding point # 4 , can we automatically fetch all items from the store listing in order to show an items list he can use to choose the items he would like to sell via our sales channel app based on the permission we got during the installation process or does he need to do any other manual and active action in order for us to be able to fetch his store entire products list and the items info (photo , price , name , qty , etc )
Tnx
Itai
Regarding #4, yes that's my understanding.
Scott | Developer Advocate @ Shopify