I would like to edit custom Lightswitch field value to true inside of event on order save
$order = $event->params["order"];
$order->setContentFromPost(array(
'ediCheck' => true,
));
$order->getContent()->setAttributes(array(
'ediCheck' => true,
));
Tried following but the value still stays the same.
Also If there is an documentation file on following that I maybe missed would also be helpful.