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

Changing Order Code Length in SAP Cloud Commerce

user012
Discoverer
0 Likes
557

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!

View Entire Topic
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 Likes
thank you !