Liquid Template Variables - metafields

From Spiffy Stores Knowledge Base

Revision as of 14:22, 20 February 2015 by Admin (talk | contribs) (Created page with "The Liquid template variable '''metafields''' is associated with the following Liquid objects: * shop * product * variant * page * blog * collection * customer * order The '...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The Liquid template variable metafields is associated with the following Liquid objects:

  • shop
  • product
  • variant
  • page
  • blog
  • collection
  • customer
  • order

The metafields object allows you to store extra information about your store, products, collections, orders, customers, blogs and pages. You can choose exactly what sort of information you wish to save and the exact format in which it's saved. This makes for a very powerful tool to assist you in the task of managing your store.

A metafield is made up of a key and a value organized with other keys and values under a common namespace. An optional description can also be store with the key and the value. Values can be stored as either strings or integers.