I am building a product catalog that requires each product to have lots of custom Umbraco datatypes (product features, multiple color swatches, compatible products, product specs, etc...). I was thinking of having nodes at the root level in the "Content" tab of Umbraco where I could create color swatches, product features, etc.. and then have a mulit color picker, mulit product feature picker, etc... (custom Umbraco datatypes) on the product definition in uCommerce.
The main question is, how can I utilize Umbraco Datatypes in UCommerce? It would be nice to be able to create a property on a uCommerce product definition and have umbraco datatypes appear in the "Data Type" dropdown.
You cannot in Umbraco 7. The data types changed dramatically and we haven't found a way to bridge them into uCommerce as of yet.
You could however create data types for uCommerce directly instead of use those.
To do this you need to implement UCommerce.Presentation.Web.Controls.IControlFactory and potentially UCommerce.Presentation.Web.Controls.IControlAdapter - both are located in the UCommerce.Presentation.dll
ControlFactory is responsible for creating the UI for you and ControlAdapter is responsible for getting the value from the control when it is to be stored.
You can see a simple example of an implementation of this in ShortTextControlFactory in the same DLL using dotPeek or Reflector.
Thank you for your response Soren! That is very unfortunate news as we have lots of datatypes created in Umbraco that we need in Ucommerce. Thank you for pointing me in the right direction for creating custom datatypes in uCommerce. I will have to go that route instead!
Have you tried creating a custom uCommerce datatype that does little more than display a Umbraco editor? Not sure if it's possible, but if so you could potentionally make one uCommerce control and use it wrap any Umbraco editor.
Umbraco 7 Datatypes in uCommerce 6.0.1.14120
Hello all!
I am building a product catalog that requires each product to have lots of custom Umbraco datatypes (product features, multiple color swatches, compatible products, product specs, etc...). I was thinking of having nodes at the root level in the "Content" tab of Umbraco where I could create color swatches, product features, etc.. and then have a mulit color picker, mulit product feature picker, etc... (custom Umbraco datatypes) on the product definition in uCommerce.
The main question is, how can I utilize Umbraco Datatypes in UCommerce? It would be nice to be able to create a property on a uCommerce product definition and have umbraco datatypes appear in the "Data Type" dropdown.
I hope this is possible!
Thanks a lot!
You cannot in Umbraco 7. The data types changed dramatically and we haven't found a way to bridge them into uCommerce as of yet.
You could however create data types for uCommerce directly instead of use those.
To do this you need to implement UCommerce.Presentation.Web.Controls.IControlFactory and potentially UCommerce.Presentation.Web.Controls.IControlAdapter - both are located in the UCommerce.Presentation.dll
ControlFactory is responsible for creating the UI for you and ControlAdapter is responsible for getting the value from the control when it is to be stored.
You can see a simple example of an implementation of this in ShortTextControlFactory in the same DLL using dotPeek or Reflector.
Hope this helps.
Thank you for your response Soren! That is very unfortunate news as we have lots of datatypes created in Umbraco that we need in Ucommerce. Thank you for pointing me in the right direction for creating custom datatypes in uCommerce. I will have to go that route instead!
Thanks again!
Logan
I have the same problem as Logan P. Need to use the Umbraco datatypes in uCommerce. Is there any solution yet to do this?
Have you tried creating a custom uCommerce datatype that does little more than display a Umbraco editor? Not sure if it's possible, but if so you could potentionally make one uCommerce control and use it wrap any Umbraco editor.
is working on a reply...