I have a custom CMS block in the sidebar of checkout page with a checkbox selection where you can choose one of a few options. I would like the chosen option to be visible in the admin panel sales/order info after order is placed.
How can I make an Observer/Event to read the selection and maybe add the selection in text to Status History Comment?
How you will handle actions from the CMS block?
Hello @Damian Culotta
Thank you for your reply! What do you mean, can you be more specific please?
It has no action at the moment, it is a simple CMS block using Modal widget to popup on click with multiple selections with check boxes or possibly a dropdown with options where one is chosen during order placement that is then visible in admin panel Order details
Kindly refer below links to save your extra value in database from checkout,
First step is Save Your extra value in database.
After save field into database you can show your value in Sales order page.
Thank you for your help so far. This link only explains how to put it in the checkout_index_index.xml which is the shipping address form. I would like it seperated from that is why I have it in the sidebar.html under Order Summary, is there a way to keep it like that?
You can take help from here how to save additional form field value in database and display in Sales order page.
You need to take reference from here. Its separate form and save value in database and display value in admin panel order info page.