Skip to main content

Variant text/HTML metafield theme block

Intro​

This tutorial covers the peculiarities of a specific block. Please ensure you are familiar with the basic tutorial before proceeding.

Supported metafield types​

The given block is compatible with the following metafield types:

  1. Single-line text field *;
  2. Multi-line text field;
  3. Rich text field;
  4. String (deprecated);
  5. Language;
  6. Number integer *;
  7. Number decimal *;
  8. Integer (deprecated);
  9. Money;
  10. Weight *;
  11. Volume *;
  12. Dimension *;
  13. Antenna gain *;
  14. Area *;
  15. Battery charge capacity *;
  16. Battery energy capacity *;
  17. Capacitance *;
  18. Concentration *;
  19. Data storage capacity *;
  20. Data transfer rate *;
  21. Display density *;
  22. Distance *;
  23. Duration *;
  24. Electric current *;
  25. Electrical resistance *;
  26. Energy *;
  27. Frequency *;
  28. Illuminance *;
  29. Inductance *;
  30. Luminous flux *;
  31. Mass flow rate *;
  32. Power *;
  33. Pressure *;
  34. Resolution *;
  35. Rotational speed *;
  36. Sound level *;
  37. Speed *;
  38. Temperature *;
  39. Thermal power *;
  40. Voltage *;
  41. Volumetric flow rate *;

The list versions are supported for the types marked with a star ("*").

Configuring your block​

Make sure to copy the correct namespace and key from variant-level metafields:

make-sure-to-copy-the-correct-namespace.png

You can also use product-level metafields as placeholders for those of your variants that don't have the metafield yet. If you want to disable this feature, all you need to do is un-tick this option:

can-also-use-product-level-metafields.png

Customizing your block​

Please refer to this tutorial to learn more about customizing a text block.