Unable to Import Product Variants (Element Type) via CMSImport in Umbraco Commerce 17

Hello everyone,

I’m currently working with the following setup:

  • Umbraco Version: 17.2.2

  • Umbraco Commerce Version: 17.1.3

I’m trying to import product variants using CMSImport. On my Product page, variants are implemented using a Custom Product Multi Variant, which is configured as an Element Type.

The issue I’m facing is that this element type is not available/selectable during the CMSImport process, so I’m unable to map or import the variant data.

Has anyone encountered this issue before?
Any suggestions or recommended approaches to handle importing variants in this scenario?

Thanks in advance! :slight_smile:

Hi @ashachaudharygd

I don’t know the answer, but Richard (who wrote CMSImport) is normally good at getting back to you if you have a question. I don’t know if he looks at the forum but you can contact him at [email protected].

The docs mention adding a mapping for element types in the block list/grid, so I don’t know whether you need to do something similar.

I don’t think product multi variants are stored as normal content nodes in the CMS so you may have to write some custom code to import these.

Justin

1 Like

If i recall, CMSImport can’t import element types used inside Umbraco Commerce’s Custom Product Multi Variant property, because those variant definitions are not stored as normal content nodes.

I believe they are JSON‑serialized data inside the product document, and CMSImport doesn’t expose those structures for mapping.

1 Like

There maybe something you can use from here (it is Vendr so will need renaming), but may give you a starting point: create complex variants from code

Justin

1 Like

Thank you @justin-nevitech @EssCee for getting back to me.
Let me see.