Liquid examples

Articles to show you examples of using the different field types in Liquid

6 Articles

  • Introduction (read this first) Most of the examples below use the "product" scope. To use metafields for other object types, just replace "product" with your required...
  • Handling empty values If a value of a custom field is empty - as it will be when no value has ever been entered for it - its corresponding metafield does not...
  • Basic field types Checkboxes A checkbox normally has two states - checked or unchecked. In our case, it is a little different - the value of a checked...
  • Images and files Images and files are automatically uploaded to a secure Google Cloud bucket and the corresponding URL is stored in the metafield, ready...
  • Reference fields A custom field defined as a reference type will contain the referenced Shopify object's handle as its value. You can use this handle to...
  • Repeatable fields Any field type and even blocks of fields can be defined as "repeatable". This means that rather than having a 1:1 relation between a...
Helpdocs by drift