Metafield Functions

Share:

Description

Metafield Functions

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
getMetafields(resourceName, resourceId = NULL, ...)

getMetafieldsCount(resourceName, resourceId = NULL, ...)

getMetafield(metafieldId, ...)

createMetafield(resourceName, resourceId = NULL, metafield, ...)

modifyMetafield(metafield, ...)

deleteMetafield(metafieldId, ...)

Arguments

resourceName

the name of a resource e.g. "products", "smart_collections", "product_image"

resourceId

the id number of the resource, if applicable (for example Shop has no id)

metafieldId

a Metafield id number

metafield

a list containing Metafield fields

...

additional request parameters

Value

a list containing a Metafield fields or a list of Metafields

References

Shopify API Metafield documentation: http://docs.shopify.com/api/metafield