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.

Can I get product detail by product id from frontend?

Can I get product detail by product id from frontend?

leeaz
Visitor
1 0 0

Is there anyway to get product detail from product id from frontend?

Replies 2 (2)

FarioConsulting
Shopify Partner
55 3 7

Hi,

I am assuming you mean programmatically.

Try using the GraphQL API to retrieve any data related to the product(by passing the appropriate product id).

Looking for Shopify development help?
Visit Fario Consulting

Kyle_liu
Shopify Partner
373 47 63

hi @leeaz 

 

Assuming you develop a program that can call Graphql API and pass the product ID to backend, this can be achieved. Simply using frontend API cannot achieve this

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to contact me Email Me Buy Me A Coffee