Try our conversational search powered by Generative AI!

K Khan
May 10, 2015
  2266
(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
How to add a custom property in Optimizely Graph

In the Optimizely CMS content can be synchronized to the Optimizely Graph service for it then to be exposed by the GraphQL API. In some cases, you...

Ynze | May 9, 2024 | Syndicated blog

New Security Improvement released for Optimizely CMS 11

A new security improvement has been released for Optimizely CMS 11. You should update now!

Tomas Hensrud Gulla | May 7, 2024 | Syndicated blog

Azure AI Language – Key Phrase Extraction in Optimizely CMS

In this article, I demonstrate how the key phrase extraction feature, offered by the Azure AI Language service, can be used to generate a list of k...

Anil Patel | May 7, 2024 | Syndicated blog

Webinar: Get Started with AI within Optimizely CMS

Join us for the webinar "Get Started with AI in Optimizely CMS" on Wednesday, May 8th. Don't forget to register!

Luc Gosso (MVP) | May 7, 2024 | Syndicated blog

Search & Navigation: Indexing job new features

From Episerver.Find version 16.1.0, we introduced some new features that make the indexing job in CMS more flexible and efficient: Support continuo...

Vinh Cao | May 7, 2024

Exclude content from search engines

Best practices for excluding your Optimizely CMS test content from search engines like Google, along with some tips on what to do—and what not to...

Tomas Hensrud Gulla | May 7, 2024 | Syndicated blog