Override Default Services Implementation for AC Gold
Posted: Mon Aug 12, 2013 9:36 am
AbleCommerce CommerceBuilder API implements many services for different features, for example Coupon Calculator service, Checkout service, Shipping and Tax quotes calculation services. And it uses Castle Windsor to resolve the implementation of these services. This way its fairly easy to override the default implementation of these services with a custom implementation.
Each service have an interface, and the implementation follows that interface. For example the default implementation "CommerceBuilder.Services.ShipRateQuoteCalculator" for shipping rate calculation service implements the interface "CommerceBuilder.Services.IShipRateQuoteCalculator". So, you can provide your own custom implementation by implementation the respective service interface and update the Windsor config file to use your custom implementation.
Please check this wiki article for details about how you can override the default services implementation for AC Gold with your own custom implementation:
http://wiki.ablecommerce.com/index.php/ ... or_AC_Gold
Each service have an interface, and the implementation follows that interface. For example the default implementation "CommerceBuilder.Services.ShipRateQuoteCalculator" for shipping rate calculation service implements the interface "CommerceBuilder.Services.IShipRateQuoteCalculator". So, you can provide your own custom implementation by implementation the respective service interface and update the Windsor config file to use your custom implementation.
Please check this wiki article for details about how you can override the default services implementation for AC Gold with your own custom implementation:
http://wiki.ablecommerce.com/index.php/ ... or_AC_Gold