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?
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.
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
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
is working on a reply...