0

I am added one custom field in checkout address form and i want to store that field data in Database and also display this field in admin order edit page in magento 2.3.5, so anyone can have idea please help me.

Thank you in advance.

  • 1
    follow this blog mageplaza.com/devdocs/… – ParulThakkar Jun 15 at 6:31
  • thank you but i am also want to add this custom field data should be saved in sales_order table – Deep Shah Jun 15 at 6:47
  • 1
    Once you will add field like above you will get data in order object and can call in sales order edit page – ParulThakkar Jun 15 at 6:52
  • Thank you for your reply – Deep Shah Jun 15 at 6:53
  • 1
    Can you tell me the exact purpose of your adding field ?in checkout address and order efit page ? – ParulThakkar Jun 15 at 6:58
1

Follow this blog https://www.mageplaza.com/devdocs/add-new-fields-address-form-magento-2.html

And you will have order object so you can add in your edit page as well ..Let me know if you want more help

Can you check following link to add attribute in order field ?

Adding custom fields to sales_flat_order

| improve this answer | |
  • yes your answer is right and helpful but i am doing this thing already and now i want to do this thing:- "i want to set this kind of mechanisum when i want to add something in my custom field that will be going to store in database's sales order table that thing i want to do" – Deep Shah Jun 15 at 6:59
  • 1
    @DeepShah Check my answer I edited – ParulThakkar Jun 15 at 7:03
  • hello, but i want to display dyunamic ids on sales order edit page in that admin can also see the order id and change the order id and that id should be updated in sales order table in custom_field column. I hope you got my idea -@ParulThakkar – Deep Shah Jun 15 at 7:07
  • 1
    original order id or any custom order if that can be edited ? – ParulThakkar Jun 15 at 7:09
  • custom order id – Deep Shah Jun 15 at 7:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.