0

Can anyone helps me how to add a custom text field and value save in database:

I have followed the below link text field is created but the value is not saving in database: How to add custom checkout fields and save them in db?

2 Answers 2

1

For Custom attribute you needto use layoutprocessor and custom extension attribute.

Here is the good example, you can use it.

https://github.com/dckapblog/Custom-field-in-checkout-page

1
  • Not working in Magento 2.4.* Commented May 20, 2021 at 8:47
0

I followed this tutorial and its worked for me.

https://webkul.com/blog/add-custom-field-checkout-address-form-magento2/

8
  • is the above field is saving the values in db or not Commented May 24, 2018 at 9:02
  • hi, field is showing in frontend but in tadabase value is not saving Commented May 24, 2018 at 10:19
  • @shivashankarm Then please try this too magento.stackexchange.com/questions/126036/… Commented May 24, 2018 at 12:26
  • i was also tried that link but value is not saving in database Commented May 24, 2018 at 12:27
  • Did you check that post data request? is your custom field data passing to next step? Commented May 24, 2018 at 12:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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