Disclaimer: This website requires JavaScript to function properly. Some features may not work as expected. Please enable JavaScript in your browser settings for the best experience.

HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsGitHubNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

Change default implementation

Describes how to update the dependency container to use your new classes in Optimizely Commerce Connect 13.

To replace implementations in the Optimizely Commerce Connect order system, update the dependency container to use your new classes. See Dependency injection for more information.

ClassDescription
IOrderRepositoryThe default implementation for IOrderRepository is architected so that it does not need to be replaced to provide custom implementations for different order types. Instead, register implementations for ICartProvider, IPurchaseOrderProvider, and IPaymentPlanProvider to change the behavior of IOrderRepository.
IOrderEventsListen to and act on order repository events.
ICartProviderChange the default implementation of loading and persistence of shopping carts.
IPurchaseOrderProviderChange the default implementation of loading and persistence of purchase orders.
IPaymentPlanProviderChange the default implementation of loading and persistence of payment plans.
IOrderGroupFactoryCreate implementations of the order system object abstractions. You almost certainly need to change the default implementation if you create a custom order provider, which uses different objects for persistence.
IOrderGroupBuilderCreate sub-components  of an order group object abstraction. Each builder is registered to create sub-components for specified types of IOrderGroup. If you create a custom order group, you might need to create a custom order group builder as well, which is registered for the custom group type.
IFulfillmentWarehouseProcessorDetermine a shipment's default warehouse. You need to change the default implementation if you have multiple fulfillment warehouses, because the default implementation only supports one fulfillment warehouse.
IInventoryProcessorAdjust inventory. You need to change the default implementation if you integrate with another system for inventory checks.
ILineItemValidatorDetermine if a line item is valid in terms of active status and availability dates on the entry itself as well as the catalog. You need to change the default implementation if you have other criteria which determine if a line item is valid.
IPlacedPriceProcessorGet the currently-placed price for an line item, and update it if necessary. You need to change the default implementation if you have additional pricing rules outside of what is implemented in the configured pricing provider.
IPaymentProcessorProcess payments on an order. You need to change the default implementation if you are not using configured payment providers to handle payments.