how to connect shopify app with store front

vikash-kr-gh
Shopify Partner
1 0 0

Hello All,

I am developing a app with the help of shopify remix and Polaris. But i am stuck in how to connect my app with the store front i.e. I want show something on product listing page with the help of my app but i dont know how to connect with the store front. please help me out.

Thanks in advance.

Replies 2 (2)

Liam
Shopify Staff
2731 299 769

Hi Vikash-Kr-Gh,

 

There's a couple of options you can use for this. One of the easiest ways to display custom content on a product page might be to use a theme app extension which allows your app to include a component (called an app block) on a specific page, that merchants can interact with via the theme editor. This doc on getting started with theme app extensions will be helpful. 

 

Alternatively you could work with app proxies to fetch and display data on a merchant's store from an external source.

 

I'd recommend checking out the docs linked and if you have more questions, let us know!

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Wakil_eFoli
Shopify Partner
40 2 5

Hi @Liam,
I'm trying to publish a product to the online store after creating it. I'm trying it using the publishablePublish mutation but after I run this mutation I get the following error: Error: Your app doesn't have a publication for this shopthough when I check the newly created product in the admin panel I can see that it has been published to the online store. 

I searched if someone else faced similar issues and found out an accepted answer that suggests: The app needed storefront api access to set the product to Online Store. 

Now how can I give storefront api access to my app in this scenario?