I need to build a pretty articulated custom commerce product's model but I have found some strange difficulties doing this, which I didn't expect.
An example: I have a product model with a correlated entity which is basically an item with two fields: a code (number) and a description.
To handle this simple scenario, I made a few attempts:
I made a simple model with Sitecore using template , the result was perfect but those items would not be linked with the commerce server nor any custom fields were accessible from a search query or a search results. Obiviosly I missed a "link" with a Sitecore commerce product and the Sitecore item.
I used the "commerce server way" to build the model: when I edited a product definition I couldn't (or I don't know how) reference a field with a lookup values.
For the same purpuose I also tried the multiple choise type but I had two issues with that type:
- I needed to use the merchandising to put a value in, which is terrible and comes with no validations
- The merchandising didn't render the control as a combobox or list, instead the user must input a correct value without knowing it.
Is there a way to build a custom product model in Sitecore Commerce using the Sitecore content editor CRUD function?