Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

K Khan
May 10, 2015
  2259
(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

Comments

Please login to comment.
Latest blogs
Solving the mystery of high memory usage

Sometimes, my work is easy, the problem could be resolved with one look (when I’m lucky enough to look at where it needs to be looked, just like th...

Quan Mai | Apr 22, 2024 | Syndicated blog

Search & Navigation reporting improvements

From version 16.1.0 there are some updates on the statistics pages: Add pagination to search phrase list Allows choosing a custom date range to get...

Phong | Apr 22, 2024

Optimizely and the never-ending story of the missing globe!

I've worked with Optimizely CMS for 14 years, and there are two things I'm obsessed with: Link validation and the globe that keeps disappearing on...

Tomas Hensrud Gulla | Apr 18, 2024 | Syndicated blog

Visitor Groups Usage Report For Optimizely CMS 12

This add-on offers detailed information on how visitor groups are used and how effective they are within Optimizely CMS. Editors can monitor and...

Adnan Zameer | Apr 18, 2024 | Syndicated blog