Spryker add prefix to order reference number

104 Views Asked by At

I am new to spryker, I want to add prefix to order reference number, but there is a prefix in it by default, I couldn't find where the prefix comes from. Can anyone help me on this

1

There are 1 best solutions below

0
Gürkan Sevinc On BEST ANSWER

Prefix creation is happening here :

https://github.com/spryker/spryker-core/blob/2b06c2c1e21d43098f6708b7cb0db56af57243b6/Bundles/Sales/src/Spryker/Zed/Sales/SalesConfig.php#L92

In core implementation, it is a concatenation with predefined uniqueIdentifierSeparator of store name and environment prefix ,which can be set in config_default.php as

$config[SalesConstants::ENVIRONMENT_PREFIX] = '' 

Extending SalesConfig in project level could be a solution.