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
Tourist
8 0 1

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).

Kyle_liu
Shopify Partner
101 14 17

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 on (liushuaicc@shinetechsoftware.com)