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!
Hello @gkarthickj122d
if you have created a custom order attribute and it is not being saved after submitting the Create Order button in the Admin, the issue might be related to the following:
Hope it helps !
If you find our reply helpful, please give us kudos.
A Leading Magento Development Agency That Delivers Powerful Results, Innovation, and Secure Digital Transformation.
WebDesk Solution Support Team
Get a Free Quote | | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789
Thank You,
WebDesk Solution Support Team
Get a Free Quote | Email | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789
Location: 150 King St. W. Toronto, ON M5H 1J9