How to Configure the Order Number Range in SAP Hybris Commerce Using Groovy

If you haven't noticed already, I leverage Groovy quite a bit to configure SAP Hybris Commerce. Groovy can also be used to programatically re-define the Hybris Commerce's order number range. The OOTB Hybris order number seed value starts at zero (0), which means the first order in Hybris will normally begin at order number one (1), unless you redefine the¬†keygen.order.code.start property in the local.properties file. There are are certain circumstances when we need to re-define the order number range dynamically, in particular for testing purposes. This tutorial will demonstrate how to configure SAP Hybris Commerce's default order number range using …