- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Magento 2.4.7 Order Attribute
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/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Magento 2.4.7 Order Attribute
@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!
200+ Magento 2 Extensions for Enhanced Shopping Experience.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Magento 2.4.7 Order Attribute
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:
- Ensure the Attribute is Added to the Admin Order Creation Form
- To check if the custom attribute is part of the form data, use browser developer tools (Network tab) to inspect the POST request and confirm if the custom attribute is being sent.
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