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.

How to Use External App Data In App Theme Extention?

Solved

How to Use External App Data In App Theme Extention?

ahmetalan
Shopify Partner
4 0 0

Hello There,

 

I building app to using theme extension.

 

Everything is perfect but i cant solve how we can use our app data in theme app extension block liquids.

 

I saw shopify example on github(https://github.com/Shopify/product-reviews-sample-app/blob/main/theme-app-extension/blocks/product-r... but this example data source coming from metafields

 

For example our reviews on the our database, how we can use this reviews on this liquid?

 

Thanks.

Accepted Solution (1)

SBD_
Shopify Staff
1831 273 423

This is an accepted solution.

Hey @ahmetalan 

 

You could either sync the info with Shopify (e.g. store in metafields), or make a client-side JS request to fetch the data.

Scott | Developer Advocate @ Shopify 

View solution in original post

Replies 3 (3)

SBD_
Shopify Staff
1831 273 423

This is an accepted solution.

Hey @ahmetalan 

 

You could either sync the info with Shopify (e.g. store in metafields), or make a client-side JS request to fetch the data.

Scott | Developer Advocate @ Shopify 

ahmetalan
Shopify Partner
4 0 0

Hey SBD,

 

Thanks for help.

 

If i choose make client-side js request do i need use app proxy for request to our backend?

SBD_
Shopify Staff
1831 273 423

Hey @ahmetalan 

 

That's an option but not required.

Scott | Developer Advocate @ Shopify