Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get shopify Metafields for products in one call

Tags:

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.

like image 949
Bayuo Blaise Avatar asked Jun 13 '12 17:06

Bayuo Blaise


People also ask

Can Shopify create Metafields without app?

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.

How do I export Metafields from Shopify?

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.

How do I use collection Metafields in Shopify?

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.


1 Answers

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.

like image 165
Michael Johnston Avatar answered Sep 19 '22 09:09

Michael Johnston