Attribute templates
Attribute templates define which attributes are available on a product. Every product in Avvyr is assigned one attribute template, and that template determines the set of fields available for editing on the product's overview page.
How templates work
A template is a named collection of attributes in a specific order. When you create a product, you select a template — and from that point, the product's attribute editor shows exactly those attributes.
Templates can optionally include all attributes, which means every attribute in the system is automatically available on products using that template. This is useful for a "catch-all" template but means products may show many fields that aren't relevant.
The template list
Navigate to Products → Attributes and click the ⋯ menu → Templates.
The list shows:
| Column | Description |
|---|---|
| Name | The template name. |
| Attributes | Count of attributes in the template (e.g., "12 attributes"). |
Use the search bar to filter templates by name. Click any row to open the editor.
Creating a template
- On the template list, click Create Template.
- A slideover opens with the following fields:
| Field | Required | Description |
|---|---|---|
| Name | Yes | A unique template name. Cannot be changed after creation. |
| Code | Auto | Auto-generated from the name. Read-only. |
| Description | No | Optional description of the template's purpose. |
| Includes all Attributes | No | Checkbox — when enabled, the template automatically includes every attribute in the system. |
- Click Create. You'll be redirected to the template editor.
Editing a template
The template editor slideover shows:
Basic information
| Field | Editable | Description |
|---|---|---|
| Name | No | Set during creation. Read-only. |
| Code | No | Auto-generated. Read-only. |
| Description | Yes | Update the template description. |
| Includes all Attributes | Yes | Toggle to include all attributes. When enabled, the attributes section is hidden. |
Attributes section
This section is only visible when "Includes all Attributes" is not checked.
The attributes section has two areas:
Selected attributes
A drag-to-reorder list of attributes currently in the template. Each item shows:
- Drag handle — Reorder by dragging.
- Attribute name (bold) with code below.
- × remove button — Remove the attribute from the template.
The order of attributes in this list determines the order they appear on the product editor.
Available attributes
Below the selected list, a searchable list shows all attributes not yet in the template:
- Search bar — Filter by name.
- Each item shows attribute name and code with an + add button.
Click + to move an attribute from available to selected.
Default variant axes
A multi-select field that lets you pre-configure which attributes should be used as variant axes when creating a parent product with this template.
Only attributes that meet both criteria appear:
- Type is Select
- Variant Axis Eligible is enabled in the attribute settings
This saves time when creating variant products — the axes are pre-filled instead of requiring manual selection each time.
Deleting a template
Click Delete at the bottom of the editor. A confirmation dialog asks you to verify.
Template and product relationship
- Each product has exactly one attribute template.
- The template is assigned when the product is created.
- You can change a product's template later from the product editor's Definition card.
- Changing a template on an existing product changes which attributes are visible, but does not delete existing attribute data. If an attribute was filled in and the new template doesn't include it, the data remains in the database but won't be shown in the editor.
Best practices
- Create templates by product category — Different product types need different attributes. Create templates like "Clothing", "Electronics", "Furniture" with relevant attributes for each.
- Order attributes logically — Put the most important and frequently edited attributes at the top.
- Avoid "include all" — Unless you have a very small number of attributes, avoid the "Includes all Attributes" option. It clutters the product editor with irrelevant fields.
- Set default variant axes — If products using this template typically have variants, pre-configure the axes to streamline the creation workflow.
- Plan before creating — Template names can't be changed. Decide on a naming convention before creating your first templates.