Metafields
Metafield settings
Several sections and blocks in Purity read their content from metafields on your products and collections. In Purity 1.3.0 the metafield each feature reads is a setting you can change, not a fixed value in the code. This means you can point any of these features at your own metafield (any namespace and key) without editing the theme.
How it works
Each of these settings is a text field where you enter the metafield in namespace.key format, for example custom.highlights.
- Leave the field on its default value to use the metafield Purity expects out of the box.
- Change it to any
namespace.keyif your store stores that content in a different metafield. - The metafield must hold the type of content the feature expects (for example, a list of products, or a list of image/text items). Create the metafield in Settings -> Custom data if you don't have it yet.
Blocks
These are product blocks, added inside a product section or a section that supports blocks. They read from product metafields.
| Setting (block) | Default metafield |
|---|---|
| Short description metafield (Description) |
|
| Highlights metafield (Highlights) |
|
| Key features metafield (Key features) |
|
| Media lightbox metafield (See it in action) |
|
| Model size metafield (Model size) |
|
| Product sizing metafield (Product sizing) |
|
| Shop the look metafield (Shop the look) |
|
Sections
| Setting (section) | Reads from | Default metafield |
|---|---|---|
| Similar products metafield (Shop similar product) | Product |
|
| Frequently bought together metafield (Bought together products) | Product |
|
| Complete the look metafield (Complete the look) | Product |
|
| Info gallery metafield (Key ingredients) | Product |
|
| Compare items metafield (Compare products) | Product |
|
| Ingredient highlights metafield (Compare products) | Product |
|
| Subcollection metafield (Sub collection) | Collection |
|
Theme settings
| Setting | Reads from | Default metafield |
|---|---|---|
| Scrolling text metafield (Theme settings -> Product cards) | Product |
|
| Collection empty metafield (Theme settings -> Cart) | Collection |
|
No comments yet