K Khan
May 10, 2015
(0 votes)

using prices from external sources as ERP

If a business is using an ERP system for its activities then it is high likely that for their E-Commerce section, they are managing product prices also in ERP system. To use those prices in EPiServer Commerce (7.5+) is very straight forward. In EpiServer Commerce pricing modules are provider based so it can be replaced with any custom module pulling prices from ERP or some external system. Commerce platform allows this price data from custom pricing­ module to be used in all display and calculation locations. All we need to do is, implement IPriceService and IPriceDetailService and register them in the commerce initialization module. If you want to see this action you can download code from GitHub , ammend, compile and register those classes into commerce initialization module.

// I assume some expert level episerver developer is working at this module
// use XPriceParser to setup test prices (apologize in advance for this hassle)
// Embed this code into your Commerce site.
public class CommerceIntialization : IConfigurableModule
public void ConfigureContainer(ServiceConfigurationContext context)
            context.Container.Configure(c => c.For<IPriceService>().Use<DummyPriceService>()); 
            context.Container.Configure(c => c.For<IPriceDetailService>().Use<DummyPriceDetailService>());

Below price is from external source in Online Center Catalog UI
Image cool.png       


May 10, 2015


Please login to comment.
Latest blogs
Preview multiple Visitor Groups directly while browsing your Optimizely site

Visitor groups are great - it's an easy way to add personalization towards market segments to your site. But it does come with it's own set of...

Allan Thraen | Sep 26, 2022 | Syndicated blog

The Report Center is finally back in Optimizely CMS 12

With Episerver.CMS.UI 12.12.0 the Report Center is finally re-introduced in the core product.

Tomas Hensrud Gulla | Sep 26, 2022 | Syndicated blog

Dynamic Route in ASP.NET Core When MapDynamicControllerRoute Does Not Work

Background Creating one of the add-on for Optimizely I had to deal with challenge to register dynamically route for the API controller. Dynamic rou...

valdis | Sep 25, 2022 | Syndicated blog

404 Error on Static Assets Within an Optimizely plugin

Background With the move to CMS 12 and .NET 5/6, developers are now able to build Plugins and Extensions using Razor Class Libraries (RCL).  These...

Mark Stott | Sep 23, 2022