Skip to main content
Attribute list for Inventory with Name, Key, Format, Group, and Global columns

Settings > Attributes & Tags > Inventory

An attribute is a data field you define yourself, on top of the fields TWICE Commerce already keeps. You record what your business needs on a record — a frame number on a stock item, a fabric on a listing, a membership number on a customer. The editor is the same wherever attributes are managed. Open it from Settings → Attributes & Tags and pick a resource — Inventory, Catalog, Customers, or Orders. Each resource keeps its own attributes and its own groups; nothing is shared between them.

Attribute types

The Type dropdown in the Add new attribute drawer, open on its nine values

Settings > Attributes & Tags > [resource] > New attribute

Type is set when the attribute is created and decides how the value behaves and renders. The list is the same for all four resources, except that Smart field is left out on Orders: The list column labelled Format shows the stored format rather than the type’s display name, so a Yes / No attribute reads boolean and a Date & Time attribute reads datetime.
There are nine types and no others. There is no currency, percent, long-text, file, relation, or external type — use Number for currency and percent values, Text for emails and URLs, and Documents for file attachments. See Attribute formats for what each format stores.
A Text attribute can additionally constrain what it accepts. The Accepted formats section takes one or more input masks — template strings pinning the shape a value must take, such as a card or licence number. Masks apply to text only. Formula attributes compute their value from other fields on the same resource, so a residual value can follow purchase price, age, and usage hours without anyone maintaining it. See Formulas. Smart field attributes take their value from further away: one value already on the order, the customer or the units sold together, or a reply from your own API through a connector. Choosing the type opens the steps that define the request, and an extra Output type setting decides the format the value is stored as. Orders do not offer the type, and a smart field cannot be a global attribute. See Smart fields.

What the list shows

Attribute groups

Attributes can be organised into groups, which decide how they are arranged in the admin. A group separates related information so a long list of fields reads as a few short ones. Typical groups on a stock item:
  • Product details
  • Technical specifications
  • Sustainability information
  • Size and fit
A group belongs to one resource and holds attributes from that resource only. Grouping keeps records consistent with each other and makes a shared set of fields easy to apply to a new record.

Attributes

Formats, input masks, keys, inheritance, and API access.

Attribute Groups

How groups scope to a resource and affect the UI.

Attributes & Tags settings

Where attributes, groups, and tags are managed.

Formulas

Writing the expressions behind formula attributes.

Smart fields

Sources, placeholders, output types, and when a value recomputes.