0

I added a custom field to attribute add/edit form using these instructions: https://magento.stackexchange.com/a/238731 and Magento 2.2.6 : Add custom field in product attribute add form - Is not render the database value on edit

So I created an extension with that code and, I show the new field in the product attribute add/edit form, but the value not getting saved.

So the part that's missing is how to save the value to the DB. How can I accomplish that?

Thank you

Sweety Masmiya
1,34211 silver badges21 bronze badges
asked Jun 19, 2020 at 3:05

1 Answer 1

0

Please confirm first with table "sample_attribute", attribute has created or not.

If not then kindly refer below link :

https://www.mageplaza.com/magento-2-module-development/magento-2-add-product-attribute-programmatically.html

answered Jun 19, 2020 at 5:26

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.