What's your biggest current challenge? Have your say in Community Polls along the right column.

Re: Show app data at frontend

How can I display custom app data on my store's frontend?

Usama788
Shopify Partner
10 0 1

Hey hope all of you are doing well. I built one custom app that shows products data of some specific category. The thing i want is to show that data at store frontend. How can this be possible as i not found any exact solution for that. I am looking for your response.

Replies 4 (4)

Dynasort
Shopify Partner
56 5 14

Two ways:

  1. Shopify App Blocks where your merchant(s) can bring in data from the app
    https://shopify.dev/themes/architecture/sections/app-blocks
  2. Or you could create metafields with your app that can be outputted by liquid in your theme
    https://shopify.dev/apps/data-extensions/metafields
The Dynasort App

Dynamic collection sorting based on your product attributes. https://apps.shopify.com/dynasort
AndyHung
Shopify Partner
63 0 16

Hello @Dynasort ,

 

In your solution 1, how can I use Shopify App Blocks to pass data from app to store front? I dont find it in that link. Please help me. Thank you so much!

Dynasort
Shopify Partner
56 5 14

Near the bottom, you'll see the link to https://shopify.dev/apps/online-store/theme-app-extensions/extensions-framework that has the file structure. You should be able to access liquid variables there as well as add javascript and do an ajax call to gather data (depending on how you're storing the app's data)

The Dynasort App

Dynamic collection sorting based on your product attributes. https://apps.shopify.com/dynasort
AndyHung
Shopify Partner
63 0 16

Oh, Thank you for your help @Dynasort