cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Changing Order Code Length in SAP Cloud Commerce

user012
Discoverer
0 Kudos
485

Hi everyone,

I’m new to SAP and have a question regarding the project.properties file in SAP Cloud Commerce. Currently, the order code is defined like this:

keygen.order.code.name=order_code
keygen.order.code.digits=8
keygen.order.code.start=00000000
keygen.order.code.type=numeric
keygen.order.code.template=$

I understand that project.properties is a read-only file. Is there a way to change the keygen.order.code.digits value to modify the length of the orderCode? If so, what steps should I take to implement this change?

Any insights or guidance would be greatly appreciated!

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

mansurarisoy
Contributor

You can override the properties defined in an OOTB extension either adding the properties in local.properties file under <HYBRIS_CONFIG_DIR> or adding the properties in project.properties file in one of your custom extension which requires the OOTB extension. After adding the property, you should restart your server. If there are carts before this change, you should delete them so that new carts would be created with new codes.

References

user012
Discoverer
0 Kudos
thank you !

Answers (0)