get_metafields
Gets the metafield objects associated with the given resource object.
To be used in combination with the following objects:
CAUTION
To ensure store performance and responsiveness, the maximum number of times this filter can be called during a single page rendering process is 50. When multiple calls include identical input parameters, these calls will be deduplicated and counted as one call. Once the call limit is reached, subsequent calls will return nil.
obj | get_metafields(namespace) returns a metafields object.
Required params
-
objany: The given resource object. Valid values are as listed above. -
namespacestring: The namespace of the metafields.
Example
{{#var mf = product | get_metafields("demo_ns") /}}
{{ mf.demo_key.value }}
Was this article helpful to you?