Reading/updating metafields on front end that were created by an App

New Member
3 0 0

Hi,

Sorry for the newbie question, I am still new to app development in Shopify. I have created an App in the Shopify admin section with two simple textboxes, you put a number in and save it. One updates a private metafield and the other updates a public metafield. 
Next step is to access these metafields on the store front end on the products page and also be able to increment this counter on the front end products page. I need to access app metafields.

I have read many docs online but I am very confused as to where to begin with this. I get that I need to use a ScriptTag on the front end to achieve this but I dont understand where this script file must be placed. The other confusing bit is that documentation states that I need to create a new script tag via (/admin/api/2020-01/script_tags.json), what is this for? Does this mean that I need to:
1- Create a script tag via /admin/api/2020-01/script_tags.json
2- Put a script file in my React express App somewhere (maybe a script folder) 
3- Call that script via: "Retrieve a single script tag by its ID"

If someone could please explain the steps involved I would really appreciate it :)

Thank you.
 

0 Likes
Highlighted
New Member
3 0 0

No one can offer any help with this?

0 Likes