I want to place a link in order detail page. When clicked on it, it should add an extra parameter to

/sales/order/view/order_id/xxx url.

After that a separate phtml will be open in content. I am FE developer and new on backend. Please provide a solution

1 Answer 1


you should create new module with controller, and declarate your phtml in layout.xml file.

<?xml version="1.0"?>
   <sales_order_view_additional translate="label">
       <block type="core/template" name="additional" template="[Namespace]/[Modulename]/view.phtml"></block>

read more about how to create module

  • I am unable to add phtml from controller. I have created separate xml file in layout and added render method in controller action. But html is not appearing in front end. Sep 27, 2017 at 14:44

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.