I have been trying to get metafields for over 100 products and that means I have to make separate 100 api calls for each product. If there is a way to grab all metafields for all products just in one xml file like the way variants are attached to products. So that with one api call, i grab all 100 products instead of making 100 separate api call for each product. Any help is appreciated.
In the Shopify menu, goto Online Store > Themes > Actions > Edit Code and select collection. liquid. Here we'll add a little snippet of code to display the metafield we just set up for the collections page. Click Save.
To export specific Metafields you can now open the “Customize Columns” section and click on the pencil button to specify what Metafields to export. A popup will open where you can specify what Metafield Namespace and Key to export. Once checkboxes are selected you can click on the “Export” button to start the export.
Step 1: Log in to your Shopify admin. Step 2: Go to Settings > Metafields. Step 3: Select Collection in the metafields type. Step 4: Click on the Add definition button.
It would be nice if it was mentioned in the API doc though. Nothing about
Receive a list of all Metafields GET /admin/metafields.json?since_id=721389482
indicates it will only return shop metafields.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With