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.

  • Pavel 1 post 21 karma points
    Feb 17, 2014 @ 10:21
    Pavel
    0

    Custom Data Type for uCommerce

    Hi,

    We use our custom made Data Type and we'd like to use it to extend uCommerce Product definition.

    We found that uCommerce requires IControlAdapter and IControlFactory implementatin for each Data Type. Implementation details are more or less clear, but not clear how to register new factories.

    Can abybody advise how to properly adjust custom Data Type for uCommerce?

    Thank you

  • Morten Skjoldager 440 posts 1499 karma points
    Feb 17, 2014 @ 10:48
    Morten Skjoldager
    0

    Hi Pavel,

    They are registered as any other component in uCommerce in our DI container, registered in XML.

    Here's an instruction from our doc site that tells how to register a new service:

    http://docs.ucommerce.net/ucommerce/v5/extending-ucommerce/how-to-register-a-service-in-ucommerce.html

    If you have implemented both interfaces on the same class, make sure to have both interfaces registered - they can be the same implementation though so no worries there. 

    Hope this helps.

    Best Regards

    Morten

Please Sign in or register to post replies

Write your reply to:

Draft