Metaobject mapping
This section explains how to configure and map Akeneo reference entities to Shopify metaobjects in the Akeneo App for Shopify.
Reference entity
A reference entity in Akeneo is used to manage structured, reusable product information such as colors, fabrics, or ingredients. These entities have their own attributes and lifecycle, and can be linked to products or other reference entities. This allows you to enrich your catalog with detailed content like text or images, which can be reused across products.
The app allows you to map and sync up to 30 reference entities to existing Shopify metaobjects. An extended limit of 100 reference entities is available as an option: it is disabled by default and can be enabled on request to our support team. This enables you to display richer content on your Shopify storefront, such as color swatches, brands, or ingredient lists.
The app also keeps the links between your reference entity records: when a record links to records of another reference entity (for example, a Model linked to a Brand), the metaobject of the record points to the metaobjects of the linked records in Shopify. See Link records to each other.
Note: The app does not create Shopify metaobjects or metafield definitions. These must be created manually in Shopify before mapping.
By default, the app syncs the reference entity records linked to a product within the selected scope, and the records they link to when you map their link attributes. Other records are not synced.
To sync all the records of a reference entity, even those not linked to any product, use the Include all records option.
The app links each record to a metaobject entry through the entry handle, which is the record code. When no entry has this handle, it uses the entry whose display name matches the record, unless this entry already belongs to another record.
Supported reference entity attribute types
| Reference entity attribute | Supported? |
|---|---|
| Text | Yes |
| Simple option | Yes |
| Multiple options | Yes |
| Asset collections (media files of all types, url of images) | Yes |
| Number | Yes |
| Reference entity single link | Yes |
| Reference entity multiple links | Yes |
| Image | No |
You can consult the list of reference entity attribute types supporting multi-locale on this page.
Supported metaobject types
| Metaobject type | Supported? |
|---|---|
| Standard | Yes |
| Custom | Yes |
Please note that assigning standard metaobjects & entries requires that you first create these standard metaobjects in Shopify and assign a Shopify product category that is compatible with the corresponding metaobject metafield.
Supported metaobject field types
When you map a field, the app only offers the metaobject fields compatible with the type of the reference entity attribute.
| Metaobject field | Supported? | Limitations |
|---|---|---|
| Single line text metafield (one value/list of values) | Yes | List of values must be separated by a comma |
| Multi-line text metafield | Yes | |
| Color metafield (one value/list of values) | Yes | List of values must be separated by a comma |
| File metafield (one file/list of files) | Yes | |
| Integer (one value/list of values) | Yes | List of values must be separated by a comma |
| Decimal (one value/list of values) | Yes | List of values must be separated by a comma |
| Date (one value/list of values) | Yes | List of values must be separated by a comma Format: YYYY-MM-DD |
| Date and time (one value/list of values) | Yes | List of values must be separated by a comma Format: YYYY-MM-DDTHH:MM:SSZ |
| Json | Yes | Json structure |
| Boolean (one value/list of values) | Yes | List of values must be separated by a comma Compatible values: • True • False |
| ID | Yes | |
| URL (one value/list of values) | Yes | List of values must be separated by a comma |
| Taxonomy (one value/list of values) | Yes | Must be mapped to simple or multiple options. Option codes must correspond to the Shopify taxonomy code (Shopify taxonomy). |
| Metaobject reference (one value/list of values) | Yes | One value: mapped to a reference entity single link. List of values: mapped to a reference entity multiple links. The field must point to the metaobject the linked reference entity is mapped to. |
| Mixed reference (one value/list of values) | No | |
| Other references (product, variant, collection, page, file…) | No | |
| Dimension (one value/list of values) | No | |
| Volume (one value/list of values) | No | |
| Weight (one value/list of values) | No | |
| Money | No | |
| Rating (one value/list of values) | No | |
| Link (one value/list of values) | No | |
| Rich text | No |
If you require support for additional attributes, you can submit a feature request via this link.
Prepare your mapping
Step 1: Shopify configuration
To map reference entities, start by manually creating the necessary definitions in Shopify.
Create a metaobject definition
- In Shopify admin, go to Settings > Custom data > Metaobject definitions.
- Click Add definition, give it a name, and add fields based on the supported attribute types.
- Save your definition.
We recommend keeping the ‘Active-draft status’ option disabled in Shopify to ensure your metaobject entries are set to active by default.
If you enable this option, all entries will instead be created in draft status automatically.
To link records to each other, add a Metaobject reference field to the metaobject definition, and select the metaobject of the linked reference entity. Choose one value for a reference entity single link, or list of values for a reference entity multiple links.
Create a metaobject metafield definition
- In Shopify admin, go to Settings > Custom data > Metafield definitions, choose Product or Variant.
- Click Add definition and select Metaobject reference as the field type.
- Choose either one value or list of values depending on your reference entity usage.
- Save the metafield definition.
If you want to use the reference entity as a variation axis, the metafield must:
- Be created at the product level
- Be defined as a list of values
Step 2: Map your reference entities
In the app, the Metaobjects tab lists your mapped reference entities on the left, with the number of reference entities mapped out of your limit. Select a reference entity to edit its mapping on the right.
- In the app, go to the Metaobjects tab.
- Click Add reference entity.
- In PIM reference entity, select your Reference Entity.
- In Shopify metaobject, select the metaobject definition.
The app pre-fills the fields whose code matches a Shopify field key (and the record label in a required text field), and the product link when there is only one possible attribute and metafield. Check these rows before saving. - Set the options:
- Use as variation axis: select Yes to use the metaobject as a variant option in Shopify. Select No to use a simple option instead.
- Include all records: see Sync all the records of a reference entity.
- In 1. Fields, map each Reference entity attribute to a Metaobject field.
- Only the compatible metaobject fields are listed.
- For an asset collection, also select the Asset file attribute that holds the file and, optionally, the Alt text attribute.
- The List and Required badges show how the field is set up in Shopify.
- In 2. Link to products and variants, map the Product attribute that links your products to the Reference Entity to a Product metafield and/or a Variant metafield.
Only the reference entity link attributes pointing to this Reference Entity, and the metafields pointing to this metaobject, are listed. - Click Save.
Changing the reference entity or the metaobject of a mapping removes its fields and product links. The app asks you to confirm first.
Link records to each other (nested reference entities)
A reference entity record can link to records of another Reference Entity with a reference entity single link or reference entity multiple links Attribute. For example, a Vehicle links to a Model, which links to a Brand.
The app syncs these links to Shopify: the Metaobject reference field of the metaobject entry points to the metaobject entries of the linked records. This lets you build storefront navigation or collection filters across several levels, such as brand and model.
To map a link:
- Map the linked Reference Entity first (for example, Brand), to the metaobject your Metaobject reference field points to.
- Open the mapping of the Reference Entity that holds the link (for example, Model).
- In 1. Fields, select the link Attribute in Reference entity attribute, then the Metaobject reference field in Metaobject field.
- Click Save.
During the synchronization:
- The linked records are synced too, even when no product uses them. You don't need to enable Include all records on the linked Reference Entity.
- For a reference entity multiple links Attribute, the metaobject entries keep the order of the records in Akeneo.
- When a link is emptied in Akeneo, the field is emptied in Shopify, unless the field is required in Shopify.
- If a linked record cannot be created in Shopify, the record holding the link is skipped and the synchronization ends with a warning.
- The linked Reference Entity must be mapped to a single metaobject, the one the Metaobject reference field points to.
- Shopify Mixed reference fields (pointing to several metaobject definitions) are not supported.
- A differential synchronization only writes a new link when the record changes in Akeneo. After you add a link to your mapping, launch a full synchronization to fill it on every record.
Sync all the records of a reference entity
By default, the app only creates the metaobject entries of the records used by your synchronized products, or linked to them. With the Include all records option, the app creates a metaobject entry for every record of the Reference Entity, even if no product uses it. This is useful to publish a full list of brands, stores or ingredients on your storefront.
This option is disabled by default and can be enabled on request to our support team. Once it is enabled on your store:
- In the app, go to the Metaobjects tab and select the reference entity.
- Set Include all records to Yes.
- Click Save.
The records are created at the next synchronization, full or differential, even if no product changed.
If you set Include all records back to No, the metaobject entries already created are kept in Shopify. The app stops updating the ones that no product, or linked record, uses.
A record deleted in Akeneo is deleted from Shopify.
Validation rules
The app checks your mapping as you edit it and shows the issues next to the field concerned, with the list of issues at the top of the page. Save is disabled until you fix them:
- The mapping can contain up to 30 reference entities (100 if the extended limit option is enabled on your store).
- Each mapping needs a Reference Entity, a metaobject and at least one field.
- Each Shopify metaobject can only be mapped to one Reference Entity.
- Each metaobject field can only be mapped once per mapping.
- A Reference Entity can only be used as a variation axis once.
- For an asset collection, the asset attribute that holds the file is required.
- Each product link needs a product attribute and a product or variant metafield.
- A metaobject field that changed in Shopify since you saved the mapping (removed, or switched between one value and list of values) must be selected again.
- For a link between records, the linked Reference Entity must be mapped once, to the metaobject the field points to.
The following warnings don't block the save:
- A field required in Shopify is not mapped.
- The mapping has no product link: the metaobject entries won't be attached to any product in Shopify.
When you save, the app also checks that the Reference Entity, its Attributes, the asset families and the Shopify definitions still exist.
Unmap your reference entities
- In the app, go to the Metaobjects tab.
- To remove a whole mapping, click the delete icon next to the reference entity in the list, and confirm. To remove a field or a product link, click the delete icon at the end of its row.
- Save your mapping.
The records of a removed reference entity are no longer synchronized. The metaobject entries already in Shopify are kept.