1

I have added various input fields to a tab in the edit product page in the admin area, e.g.

<input type="text" name="my_field"/>

I have an observer and I can get the post fields.

$post = $this->_request->getPostValue();

I can see all the regular magento fields, but I cannot see the fields I added myself. How do get my custom fields to post data?

2

I seem to have figured this one out. I added this to the input fields:

data-form-part="product_form"

Now I can find my data in the post variables!

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.