We have encountered a strange error related to custom order fields.
First we created a new custom order field "MyOrderField" with type "Checkbox". After a while we found out that this field needs to be a text field. And since we cant change the field type, we deleted the field and created a new one with the same system name but as "Text (50)".
But whenever we try to add values to this field it always store it as "true/false". So if we try to set a value of "TEST" it is saved as "true". If we leave it empty, it is stored as "false". I checked the DB, and the field type is "Text (50)" and in the admin it appears as a text field. But values are always only stored as "true/false".
Are there any caching, or does the initial type get stored somewhere? We could of course create a new field with a new system name, but we would like to keep it in the same way it was. Any help is appreciated.