Creating New Product Types


#1

We’re in the process of creating some new product types for Reaction. Starting this thread to discuss issues and solutions when creating new types.

A unique part of creating new product types is the fact that product schemas are attached using product.type as a selector so any custom product types that are added have a different schema than other product types.

I’m curious what the best way to change a product from one type to another is, as leaving fields from product.type: foo in the database when switching to product.type bar can lead to schema validation errors.

Any thoughts on this?