Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
The promotion system can be run with the workflow system to calculate discounts and remove discounts. Updated workflow activities use the EPiServer.Commerce.Marketing.IPromotionEngine to make calculations and manipulate the cart.
To use the new promotion system in the workflows, a feature must be switched on. There are two ways to do this.
<Application defaultApplicationName="ECApplication">
<Roles>
<add name="AdminRole" value="Admins" />
<add name="ManagerUserRole" value="Management Users" />
<add name="EveryoneRole" value="Everyone" />
<add name="RegisteredRole" value="Registered" />
</Roles>
<Connection connectionStringName="EcfSqlConnection" />
<Cache enabled="true" appTimeout="0:0:10" />
<Languages>
<add key="en-us" value="English" />
<add key="da-DK" value="Danish" />
<add key="sv-SE" value="Svenska" />
<add key="fi-FI" value="Suomi" />
<add key="nl-NL" value="Netherlands" />
<add key="nb-NO" value="Norsk" />
<add key="fr-FR" value="French" />
</Languages>
<Features>
<add feature="WorkflowsVNext" state="Enabled" type="Mediachase.Commerce.Core.Features.WorkflowsVNext, Mediachase.Commerce" />
</Features>
</Application>
var featureSwitch = ServiceLocator.Current.GetInstance<IFeatureSwitch>();
featureSwitch.Features.Add(new WorkflowsVNext());
featureSwitch.EnableFeature(WorkflowsVNext. FeatureWorkflowsVNext);
Last updated: May 25, 2015