You can update product and variant metafields based on the supplier feed.
Add a Metafield field in the Data Mapping section. Select the metafield to be updated, and specify which column/node contains a corresponding value in the supplier feed.
Add metafield in the Stockeo automation For example, if you want to store all of the below properties in your store:
Use the following settings in your Data Mapping section:
Data Mapping section of Stockeo automation with added metafields It may be the case that the values you want to store in the metafield are nested in the param node, while the property name and its value, are in separate nodes.
To get them you need to use a Liquid formula in the Mapping field with the where and map filters:
In this code, param refers to a node that contains other nodes with the property name and its value. "name" is the name of the node that contains the "Brand" property, while "value" is the information to be stored in the metafield.
For the feed above use the following settings:
Get the value to be stored in the metafield from the param node Stockeo enables you to update metafield lists that allow storing multiple values in a single metafield.
To pass a list of values to Shopify correctly, ensure commas separate values:
Commas separated values to be passed as a metafield list If a different separator is used, a semicolon, for instance, add a Liquid formula to convert it to commas:
Replace semicolons with commas using Liquid You can also use Liquid to pass values from multiple columns/fields:
Values to be passed included in separate columns Use Liquid to pass values from different columns To assign a fixed metafield list of values for each variant, use another Liquid formula:
Use Liquid to pass a fixed values list In case you do not have in your store the same SKUs of products as in the feed, but you store those SKUs in the metafields for individual products, you can use variant metafields as the key to enable Stockeo to associate product from your store with the product from the feed.
Use the following settings in the Data Mapping section of your automation:
Add a new Metafield field:
Select the variant metafield with the product SKU that matches the SKU in the feed.
Select metafield with the custom SKU Enter the name of the feed node where the SKU is stored.
Mapping SKU from the feed Hit the gear icon. This button will be active if you select your variant metafield. Check the option Use a variant ID.
Use metafield as variant ID Delete the default SKU field in your automation. This is possible only if you checked the option above.
Otherwise, the SKUs of your items will be updated according to the value from the feed.
You can also use barcodes to identify variants in Shopify when SKUs are missing from the feed or do not match the SKUs in Shopify.
Stockeo supports importing data into metafields of type metaobject. When processing your feed, Stockeo matches incoming values to existing metaobject entries in your store using either the display name or the handle. Please note that matching is case-sensitive.
Stockeo does not create new metaobjects entries. If a value in your feed doesn’t match an existing metaobject, it will be skipped.
Stockeo enables you to update values for the following types of metafields:
Single values
Lists of values