Skip to content

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 …

Hybris Architect
Cookie preferences

Choose whether HybrisArchitect.com may load optional Analytics and Chat. Necessary cookies support site functions and remember your choice. Both optional services remain blocked until you accept.

Enable Analytics and Chat separately, or reject both and keep browsing. Change or withdraw your choice through Cookie settings. Your preference is remembered for 180 days. Withdrawal stops future loading of the disabled service after reload; it does not delete previously collected information.

Read our Privacy Policy.