Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Logan P. 47 posts 217 karma points
    Jun 16, 2014 @ 23:37
    Logan P.
    0

    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!

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jun 18, 2014 @ 17:38
    Søren Spelling Lund
    0

    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.

     

  • Logan P. 47 posts 217 karma points
    Jun 18, 2014 @ 17:59
    Logan P.
    0

    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

  • Simon Andersson 6 posts 27 karma points
    Dec 11, 2014 @ 16:30
    Simon Andersson
    0

    I have the same problem as Logan P. Need to use the Umbraco datatypes in uCommerce. Is there any solution yet to do this?

  • Robert Mulder 79 posts 272 karma points c-trib
    Dec 12, 2014 @ 12:24
    Robert Mulder
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft