Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: Can I change the shop used with Shopify app-bridge?

Solved

Can I change the shop used with Shopify app-bridge?

gregmaxin
Shopify Partner
6 0 2

When using the app bridge and its components like the resource-picker I am wondering if there is a way for me to change the store/host that the products come from?

As an app developer it is helpful to view your app as another store for debugging but when using app-bridge components it appears you can't load products from a store other than your own. 


Accepted Solution (1)

CharlieD
Shopify Staff
15 4 7

This is an accepted solution.

Hi @gregmaxin 👋

The App Bridge ResourcePicker will always pull products from the store that the app is being used on. There is no way to change out where the products come from.

I just want to clarify the question. Are you hoping to be able to swap out the products you see in the ResourcePicker with some test products rather than real products while testing your app?

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Replies 2 (2)

CharlieD
Shopify Staff
15 4 7

This is an accepted solution.

Hi @gregmaxin 👋

The App Bridge ResourcePicker will always pull products from the store that the app is being used on. There is no way to change out where the products come from.

I just want to clarify the question. Are you hoping to be able to swap out the products you see in the ResourcePicker with some test products rather than real products while testing your app?

To learn more visit the Shopify Help Center or the Community Blog.

gregmaxin
Shopify Partner
6 0 2

Thanks. I assumed it wasn't possible to change where the products came from. There are other options like the "unstable picker" and the Polaris "resource-list" component. 

To clarify, I was hoping to swap out the products in the resource-picker with products from another store. This is for an admin support mode for installed stores