How to add button to a product’s editing page?

Asked

Viewed 309 times

4

How do I add a button to the "Description" bar on the product edition page? The button should only be on tab Description, where product description.

I need to know how to set the route and how to mount Block so that I insert a button in it and it appears in the product editing page, at adminhtml calatog product tab.

  • 7

    You need to give more information, show the code you are using and show the part where you have trouble so that someone can help you. There are thousands of ways to do what you want.

  • 3

    There is a lot of information missing...be more specific...are you using any programming language? is the content generated dynamically? post an example code...

  • I need to know, how you define the route and how I mount the Block so that I insert a button in it and it appears in the product editing page in adminhtml calatog product tab

1 answer

2

Ideally you do this through a module, but it brings many details that are not the focus at the moment.

Note that the Block you are trying to change is part of the core and is on: app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit.php

There in the builder is executed: $this->setTemplate('Catalog/product/Edit.phtml');

I believe that’s the view you want to manipulate.

Then for the action of the button, you would direct to a controller of your module, where the prefix would be configured in its config.xml. For more details, see the Magento module fonts on Github.

I will indicate 2 that I had some contact, where in the first I put a chargeback button on the administrative page of order details:

Browser other questions tagged

You are not signed in. Login or sign up in order to post.