I want to add a button under the price box on the product add/edit admin form and call a custom controller function when click on it by AJAX request.

Please Help ....!!

enter image description here

1 Answer 1


You can create product attribute to add desired field Magento 2 Add Product Attribute Programmatically

  • I want to add a Button, not the input text. Jun 17, 2021 at 11:37
  • You cannot create a button on the product page. Magento only allows you to create more attributes for products, you can't create and save according to your customizations Jul 1, 2021 at 6:52

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.