Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Mixin Schemas

Create schemas for custom mixin properties.

The Mixin Schemas section allows extending entities in Management Dashboard, for example a product, with customized fields of different types.

To keep shared mixin values and override selected values for individual sites on products or custom instances, see Site-aware mixins.

Mixin Schemas overview in Management Dashboard
Mixin Schemas overview in Management Dashboard

Creating a mixin schema

There are two ways to define a new schema in Management Dashboard:

  • defining a schema manually

  • uploading a JSON file

In Management Dashboard, you can extend the data model for the following entities: availability, cart, cart item, category, classification, company, coupon, custom entity, customer, customer address, location, order, order entry, price list, product, quote, return, site and vendor.

Defining a schema manually

1

Choose to add a mixin schema

Go to Settings -> Mixin Schemas and choose Add new mixin schema.

2

Choose the entity

Select an entity or multiple entities that you want to customize from the dropdown menu and enter the name for the schema. You can also provide a key value for your new schema, which then works as its unique identifier. If you don't provide the key value on your own, it's generated automatically.

Choosing an entity and naming a new mixin schema
Choosing an entity and naming a new mixin schema
3

Save your configuration

Choose the Confirm button.

4

Define mixin fields

Go to Fields tab and choose + icon to add a mixin field.

  • Type – Select a field type relevant to its purpose.

  • Key – Define the name of the field.

  • Name – Provide the display name and its translations in the desired languages.

  • Description – Enter the field description.

  • Array Type (only for the Array type) – Choose the relevant type of values in an array.

  • Values (only for Enum type) – Define the default values for the field. Confirm each value with the Enter key.

  • Reference Type (only for Reference type and Reference in Array Type, and only in mixin schemas for Custom Entities) – Select the entity you want to establish a reference to.

  • Precision (only for the Decimal type) – Define the allowed decimal step for field values. Use values such as 0.1, 0.01, 0.001, and further steps of the form 10^-n (for example 0.0001). If you do not set a precision for a decimal field, the default step 0.01 is applied. Choose a finer step for measurements, conversion factors, or other precision-sensitive values; 0.01 is typically suitable for prices and similar monetary amounts.

  • No precision (only for the Decimal type) – Enable this option to accept decimal values without a step constraint. When enabled, the Precision field is disabled. Use this when stored values must not be restricted to a fixed decimal increment.

  • Provide relevant configuration in Settings:

    • Localized (only for Text or Object type) – Enable per-language values. Localized objects require localization schema version v2.

    • ReadOnly – Decide whether the field is non-editable.

    • Required (except for Boolean type) – Decide whether the field is mandatory.

    • Nullable – Decide whether the field can accept null values.

    • Array Localized (only for Text or Object in Array Type) – Enable per-language values for array items. Localized objects require localization schema version v2.

    • Array Values (only for Enum in Array Type) – Define the default values for the field. Confirm each value with the Enter key.

Configuring basic settings for a mixin field
Configuring basic settings for a mixin field
Configuring reference settings for a mixin field
Configuring reference settings for a mixin field
Configuring decimal settings for a mixin field
Configuring decimal settings for a mixin field
5

Save the fields

Save a field with Confirm button.

Repeat these steps to add as many fields as you require for the given entity.

6

Optional: Define object fields

If you've added fields of object type or of array of objects type, choose + icon within the given row to define the object's fields (only for object and array of objects types).

Defining nested fields for object and array of objects mixin types
Defining nested fields for object and array of objects mixin types
7

Save the schema

When you're done with defining mixin schema fields, confirm schema creation with Save. This action generates the schema for a particular entity or entities. You can already view the schema details in the Management Dashboard. If you need the JSON schema file, choose Open Generated JSON to access it.

Schema editor with a link to the generated JSON
Schema editor with generated JSON link

Result: The new schema is in use. It means that if, for example, you've created a schema called Size for a product entity, next time you create or edit a product, the new fields are available in a Size tab.

Product detail view showing fields from an assigned mixin schema
Product detail view showing fields from an assigned mixin schema

The schemas of object type display the defined objects as nested within a hierarchical structure:

Product mixin schema with object-type fields displayed as a hierarchy
Product mixin schema with object-type fields displayed as a hierarchy

The schemas of array of objects type also allow for adding objects with the defined fields:

Product mixin schema with an array of objects and their defined fields
Product mixin schema with an array of objects and their defined fields

Localizing text and object fields

Use localized fields when text or structured mixin content must vary by language.

The tenant system preference languageSchemaVersion controls the localized field types available in the mixin editor. The predefined Language schema version setting offers v1 and v2, with v1 as the default.

To enable localized objects:

1

Open System Preferences

In Management Dashboard, go to Settings → System Preferences.

2

Edit the language schema version

Edit the predefined Language schema version row.

3

Enable v2

Select v2 and save the row.

Changes to System Preferences can take up to five minutes to take effect. Wait for the change to apply before you configure localized Object fields.

The following field types support localization:

  • v1 – Text fields and arrays of Text

  • v2 – Text or Object fields and arrays of Text or Object

A localized Object as a whole has one value per language. Its nested fields are plain fields and cannot have their own localization settings. A plain Object, however, can contain nested localized Text or Object fields. Management Dashboard prevents you from creating a localized object with an Array anywhere inside it because these values cannot be edited in the entity form.

Example for creating the localized object values:

1

Configure the localized field

Configure and save the localized field in the mixin schema, for example a Fuel type field.

Mixin schema with a localized object and its nested fields
Localized object in a mixin schema
2

Open the mixin

Open a custom instance that uses the schema, then open its mixin tab.

3

Enter and save the values

A localized object appears as a full-width section with a Localized object badge. A localized object appears as a full-width section with a Localized object badge. For an array of localized objects, one language switcher controls all rows, and you can add, remove, or collapse rows. Enter the values under each language tab, then select Save.

Custom instance with a localized object and language tabs
Localized object in a custom instance

The content language is the language selected in the Management Dashboard header. It appears first in localized-object language tabs, followed by the other configured languages. Languages found only in existing values appear after the configured languages and remain editable.

The schema permits a nullable localized object to be null as a whole. Management Dashboard has no dedicated control for clearing the whole object. An existing whole-object null remains until you enter a value for a language. Clear language affects only the active language. For a nullable localized object, it keeps that language with a null value. For a non-nullable localized object, it removes the language entry.

Uploading a JSON file

Upload a JSON file when you already have a schema definition and want to use it as the starting point for a new mixin schema.

If you want to learn how to create JSON schema file, see Prepare a JSON schema definition.

1

Start a mixin schema

Go to Settings → Mixin Schemas and select Add new mixin schema.

2

Provide the schema details

Select one or more entity types and enter the schema name. You can also provide a key.

3

Upload the file

Choose the schema file from your device or drag it to the upload area. If the schema requires per-site values on products or custom instances, select Site aware. Select Confirm to open the schema editor.

Uploading a JSON file to create a mixin schema
Creating a mixin schema from an uploaded file
4

Review and save the schema

Review the imported fields on the Fields tab, then select Save and confirm the creation.

Result: The new schema is available for its assigned entity types. For example, a product schema adds a tab named after the schema when you create or edit a product.

Editing mixin schemas

Management Dashboard presents the version choice only when you open an entity and does not provide a bulk list of affected entities, so track affected entities individually before migration.

No manual JSON editing is required in Management Dashboard. To migrate an entity:

1

Open the entity mixin

Open an affected product or custom instance, then open the schema's mixin tab. When a newer schema version is available, the tab shows Keep old, New version, and Technical.

2

Review the new version

Select New version and review the converted values. Use Technical if you need to compare the schemas.

3

Save the entity

Select Save. Management Dashboard writes the values as v2 maps with the new schema version.

4

Continue with remaining entities

Repeat these steps for entities that remain on the old version.

5

Choose to edit a schema

Go to Settings -> Mixin Schemas and select the schema you want to change. Choose the Edit icon to modify it.

6

Make the changes

Make changes to the schema or to particular fields in the schema:

  • In Schema tab, you can select or unselect entities types you want to apply the schema to.

  • In Fields tab, you can change settings for particular fields, add more or remove fields from the schema.

7

Save your configuration

Confirm your changes with Save and confirm you want to update the existing schema.

Confirmation dialog for saving a new version of a mixin schema
Confirmation dialog for saving a new version of a mixin schema

Result: A new schema version is created. New entities use it automatically. Existing entities with saved values keep their current version until you review and apply the update.

If you have a schema applied to multiple entities, it is possible to modify the schema for each entity separately. You need to select the entities you want your changes to apply to when editing the schema. Then, the new schema version is in use only for the selected entities while the other ones still use the previous version.

Mixin schema versioning

When you edit a mixin schema that is already assigned to an entity, your changes become visible in the entity view.

For example, suppose you have a custom instance schema for mobile phones. If you add fields or modify field types, Management Dashboard presents those changes for review when you open an instance that has values saved against the older version.

When a mixin schema is used in an entity, an indicator in the view displays the mixin schema version number.

Each time you update the mixin schema and open the entity that uses it, you can see which fields were added or modified. For instance, in the mobile phone instance schema below, the newly added and updated fields are highlighted accordingly - blue for new, yellow for the changed ones.

Entity view showing newly added (blue) and modified (yellow) mixin fields
Entity view showing newly added (blue) and modified (yellow) mixin fields

In this view, you can compare the current mixin schema version with the new one. You can either keep the old version, or decide to use the new one.

Preview and confirmation screen for applying an updated mixin schema version
Preview and confirmation screen for applying an updated mixin schema version

New fields and updates are highlighted when the entity has mixin values saved against an older schema version. You can keep the current version or apply the new one. If the entity has no saved values for that schema, it uses the latest version automatically without displaying a preview:

Entity using a mixin schema without previously saved values, automatically updated to the latest version
Entity using a mixin schema without previously saved values, automatically updated to the latest version

If you need a more detailed, technical comparison of all your changes, choose the Technical button. This opens a side-by-side comparison of the current and updated schemas in a JSON format. At the top, you can see a list of differences showing the unique keys of the newly added fields. The format of these keys depends on whether they were custom-defined or auto-generated.

Technical JSON diff view comparing current and updated mixin schemas
Technical JSON diff view comparing current and updated mixin schemas

See other examples for Product and Customer entities:

Example of mixin schema versioning for a Product entity
Example of mixin schema versioning for a Product entity
Example of mixin schema versioning for a Customer entity
Example of mixin schema versioning for a Customer entity

Site-aware mixins

Site-aware mixins let a product or custom instance keep shared mixin values and override selected values for individual sites. Use them when the same entity is available across sites but some attributes differ by market or storefront.

In Management Dashboard, mark the mixin schema as Site aware, then maintain its Default values and site-specific overrides on the product or custom instance.

Site-aware mixins are useful in the following situations:

  • The same product or custom instance is sold or used across multiple sites.

  • Most mixin attributes are shared, and only some values must differ by site.

  • API clients need one merged set of values for the requested site.

If every attribute is the same on all sites, a standard mixin schema is enough.

Creating a site-aware mixin schema

1

Start a mixin schema

Go to Settings → Mixin Schemas and select Add new mixin schema. Choose Product, a custom entity type, or both. Enter the schema name and, if needed, a key. Select Confirm to open the schema editor.

To update an existing schema, open it from the list.

2

Enable site awareness

On the Schema tab, select Site aware.

Mixin schema with Product type and Site aware selected
Configuring a site-aware mixin schema
3

Define fields and save

On the Fields tab, add the attributes you need, then select Save. Field setup follows the same rules as a standard mixin schema. See Creating a mixin schema.

Saving changes to an existing schema creates a new version. Apply the new version to products or custom instances as described in Mixin schema versioning.

Result: Products or custom instances that use the schema show a site context panel on the mixin tab.

You can also enable Site aware when you upload a JSON schema file. Follow Uploading a JSON file and choose Site aware before you confirm the upload.

Setting default and site-specific values

The following example uses a site-aware Vehicle search attributes schema on a vehicle instance.

Vehicle search attributes mixin schema with Site aware enabled
Site-aware Vehicle search attributes schema
1

Open the entity

Open a product or a custom instance whose entity type is assigned to the site-aware schema. Open the mixin tab named after your schema.

2

Set Default values

In the site context panel, choose Default and enter the values shared by all sites.

Complete every required field in Default. Management Dashboard does not save the schema values until the required default fields are complete.

Site context panel with Default selected on a vehicle instance
Default mixin values on a vehicle instance
3

Add site-specific values

Choose a site in the site context panel. Fields without an override show the corresponding Default value. Enter only the values that must differ for this site.

Site context panel with United States selected and overridden mixin values
Site-specific mixin values for the United States site
4

Save all contexts

Choose Save. Management Dashboard stores the Default values and every site-specific override changed in the current session. Discard reverts unsaved changes in all site contexts for this schema.

Result: The product or custom instance keeps shared Default values and optional overrides. API clients that request the entity with a site context receive the combined values for that site.

How site context works

Use the site context panel to choose which values you are editing.

The panel includes the following contexts:

  • Default – shared mixin values for all sites

  • Site – each site configured for your tenant, shown with the site name when available, otherwise the site code

  • Removed site – after you delete a site from the tenant, its context stays on the product or custom instance for as long as site-specific mixin values remain stored for that site code

Switching between Default and sites does not save by itself. Unsaved work stays in the form until you choose Save or Discard.

Displaying mixins in entity list view

You can add a mixin field as a column in the list view of a selected entity. The mixin field can serve as a filter so that you can find the items of your interest.

1

Choose to customize your view

Go to the selected entity view and choose the Orchestration icon.

Orchestration icon for customizing the entity list view
Orchestration icon for customizing the entity list view
2

Choose the mixins

In the Mixins section, look for the mixin fields you want to add as filter columns. Or, choose Add custom mixin to add a new mixin field.

Selecting mixin fields to add as list view columns and filters
Selecting mixin fields to add as list view columns and filters

The selected mixin fields appear in the orchestration panel, where you can enable or edit them.

Selected mixin fields in the orchestration panel
Selected mixin fields in the orchestration panel
3

Adjust the way how the columns are displayed

Use the Edit icon. You can edit the displayed label of the mixin column.

Editing the label of a mixin field column in the list view
Editing the label of a mixin field column in the list view
4

Save the selection

Select Save. The selected mixin fields appear as columns in the entity list view and can be used as filters.

Unassigning a schema

If you no longer want to apply the latest version of a schema to an entity, you can unassign it.

1

Select the schema

Go to Settings -> Mixin Schemas and select the schema you want to remove from an entity.

2

Choose Unassign icon

Choose the icon to remove the connection between the latest schema version and entity.

Unassign icon used to detach a schema from an entity
Unassign icon used to detach a schema from an entity
3

Confirm the action

Choose Yes to confirm, or Cancel to keep the assignment.

Confirmation dialog for unassigning a schema from an entity
Confirmation dialog for unassigning a schema from an entity

Result: The particular entity uses the previous version of the schema that exists in the database. If you had only one schema version and you unassign it from an entity, the schema tab is no longer visible when you create or edit objects of that type.

Last updated

Was this helpful?