Metafields Import
Prerequisite:
We don't have to import all metafields from a store. Some metafields belong to custom apps and we don't need to import them. To skip those metafields, we can specify in the channel configuration the namespace we should use during the import. If empty, we will import all metafields.
1- Import:
Shopify has multiple metafield types but we are not importing all of them. Here is the ones we are skipping:
collection_reference
file_reference
metaobject_reference
mixed_reference
page_reference
product_reference
variant_reference
dimension
money
rating
volume
weight
variant_reference
list.dimension
list.volume
list.weight
list.collection_reference
list.file_reference
list.metaobject_reference
list.mixed_reference
list.page_reference
list.product_reference
list.variant_reference
Note: If a client wants to import one of those types into the PIM they will have to delete the metafield definition in Shopify before importing the store.
Â
2- Metafields mapping
Here is how we translate Shopify metafield types to PIM attribute types. Once imported, the PIM will be able to sync those metafields back to Shopify.
Shopify Metafield Types | PIM Attribute Types |
---|---|
| selectbox |
| textarea |
| text |
Â