Hi,
I’m not sure if this is the right approach but here’s what I’m trying to do:
-
I created a shopify app with App Embed that uses js file to load and trigger a button
-
this button shows up in the product page
-
when the button is triggered, I want to fetch the product information using product ID
I know that using
await authenticate.admin(request);
inside the app is not a problem, but how can I call the api in the store front using js to return product data?
Thanks in advance!
