Hi All,
I have created a custom order attribute and used for sales_order_after_save event. Admin order creation page has the data in phtml but after submit the create order button the custom attribute value is not coming in the observer function.
Used the below link for the reference:
https://meetanshi.com/blog/create-custom-order-attribute-in-magento-2-and-show-it-in-admin-grid/
@gkarthickj122d
Hey,
phtml data not pass at order creation level in the file OrderSaveAfter.php put the log what data you get in the observer file if you get that data than it save properly in order attribute.
Thank You!