Got an issue where we would like to use the CMS categories to tag products in Commerce. It seems there isn't a backing type in Commerce for the CategoryList property.
So I was just wondering if anyone have solved this issue before or are we the only ones?
did you find a solution? Back in the days... :)
You probably can't store the Categories, but now Catalog content properties support IList<T>, so you can just have a property which is type of IList<Guid> - for example, and store the Guids of Categories there. You will have to load back the Category from that but I'd imagine it's an easy task.
Can't remember exactly what we ended up doing but I think it was some kind of mapping. So I stored it as something else then mapped it back to categories when reading it. But as Quan says now you an use the IList atleast.