I am using the silvershop-core module and I want to add an additional order status to the existing Order.Status enum field.
How can I do that?
I have already tried the DataExtension approach, but it did not work.
I am using the silvershop-core module and I want to add an additional order status to the existing Order.Status enum field.
How can I do that?
I have already tried the DataExtension approach, but it did not work.
Copyright © 2021 Jogjafile Inc.
You can override individual
dbfields via YAML config. So inmysite/_config/config.ymlput something like this:As you can see,
MyStatuswas added to the enum. It's important that you keep all the other statuses though (as some code might depend on them), so best copy the field definition from the class you want to override (in this caseOrder) and add the additional enum value(s) to that.