When dealing with Shopify list-type metafields, you may want to get the number of items stored in the Liquid code at any one time. To do so, use the ".count" property instead of the ".size" property that is available for normal array-type objects.
1
/
of
1
Published:2024.03.07
Get the number of arrays in list-type meta fields in Shopify using .count instead of .size
Get the number of arrays in list-type meta fields in Shopify using .count instead of .size
Applications
Applications
- LIQUIDEdit
Share
