How to Add Multiple Attribute Values?
Last updated
Was this helpful?
Last updated
Was this helpful?
In Omnitron, attributes play a crucial role in defining product characteristics, enabling filtering in the storefront, and integrating with external systems like ERPs. However, there is a key limitation: a single attribute on a product cannot hold multiple values. This tutorial walks you through the recommended approach for handling such cases by using separate boolean attributes for each value. You'll learn how to create boolean attributes via the Omnitron interface or API, configure attribute mappings for ERP integrations, and ensure that these attributes are correctly reflected in product data and storefront filtering. Whether you're managing attributes manually or through an integrator, this guide provides the complete workflow to ensure accurate attribute configuration.
In the current Omnitron structure, attributes on a product cannot have multiple values.
If it is desired for an attribute to have more than one value on a product, a separate boolean attribute must be created for each value.
Go to Products and Catalogs > Product Attributes page in Omnitron.
Click the + New Attribute button to create a new attribute.
In the form that opens:
Set the Product Attribute Input Type field to Boolean
.
If the attribute will be used for filtering in the shop, set the Is Filterable? field to Yes
.
Set the Pre Attribute field to No
.
Example:
Instead of using the interface, a POST
request can be sent to the following endpoint:
Example Body:
i. Create Pre Attributes
Go to Products and Catalogs > Product Attributes in Omnitron.
Click + New Attribute to create a new attribute.
In the opened form:
Match information with the original attribute.
Set Pre Attribute field to Yes
.
Example:
ii. Map Pre Attributes
Go to Integration > Mapping and click + New Rule Set.
In the empty mapping row at the end of the page:
Select Pre Attribute in the ERP Features field.
Select the Attribute to be mapped in the Attributes field.
Select the Pre Attribute in the Default Attribute field.
Instead of using the interface, a POST
request can be sent to the following endpoint:
Example Body:
i. Update Product Flow in Integrator
Add newly created attributes to the Product Flow under Integration Flows in Integrator.
If needed, update the script in the flow to modify data coming from ERP.
ii. Map ERP Values to Omnitron Attributes
On the Mapping page of the flow:
Create mapping between ERP values and Omnitron attributes. (If using pending product, use pre attributes.)
To reflect the newly added attribute on products, it must be added to the relevant attribute sets.
Go to Products and Catalogs > Product Attribute Sets in Omnitron.
Edit the attribute sets where the attribute will be used.
If attribute should not be used for filtering on certain products, set Is Filterable? to No
in those attribute sets.
If the brand is using ERP:
Add new attributes to the product in the ERP system.
If ERP is not used:
Enter attribute values via Omnitron.
In order for products to be filterable by the newly added attributes in the shop, filters must be added to the URL using the attribute name and value.
Example: