-
Change Order Number generator
By default, the orders numbers are generated by an instance of EPiServer.Commerce.Order.IOrderNumberGenerator. The default number generation is: So, to change this, first we need to inject a custom implementation and remove the default one. On an initialization module that depends on EPiServer.Web.InitializationModule have the following: And my custom order generator, can be like this:
-
Add migration step with sql script
Scenario: Wanted to add a new schema, table and stored procedure to the same database where CMS is installed. The script should run only once after deployment to an environment. Using IMigrationSet can do this job, although is different from a Initialization Module that run every time the site starts up. Interface IMigrationStep documentation: https://world.episerver.com/csclasslibraries/commerce/EPiServer.Commerce.Internal.Migration.Steps.IMigrationStep?version=13… Read more
Follow My Blog
Get new content delivered directly to your inbox.