2

How can I override Order.php need to change button text for create new order, please suggest.

3 Answers 3

2

You don't need to override the Mage_Adminhtml_Block_Sales_Order block to achieve this. Just use the locale translation csv in this case app/locale/en_US/Mage_Sales.csv and add the new label there.

Example: "Create New Order","Create New Order Edited"

Screenshot in the admin:

Create New Order button

1

Of course if just for changing a text button, It's useless to rewrite all this, you should go to : app/local/{yourlanguage_Code}/Mage_Sales.csv then change "Create New Order","Your new button text"

1

You don't need to override the Mage_Adminhtml_Block_Sales_Order block to achieve this. Just use the locale translation csv in this case app/locale/en_US/Mage_Sales.csv and add the new label there.

Of course if just for changing a text button, It's useless to rewrite all this, you should go to : app/local/{yourlanguage_Code}/Mage_Sales.csv then change "Create New Order","Your new button text"

Example: "Create New Order","Create New Order Edited"

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.