Menu Close
    Hire us Request quote Reading list Switch to dark mode

    Adding an additional tab on Sales Order View page in Magento 2 Frontend

    Hello Everyone! Today, we will learn that how can we add an additional tab on the Order view page in Magento 2 frontend.

    We need to follow the steps below:

    Step 1:  In sales_order_info_links.xml in Vendor/Module/view/frontend/layout folder, add the following code –

     


    Step 2: create another layout corresponding to route/controller/path, and add the following code to it


    Step 3: Add the template file tab.phtml at Vendor/Module/view/frontend/templates folder and write the data that you want to see in the tab. e.g.


    Now save the file, flush the Magento cache, and go to order view page, it will look like-

     

    This is all for now, I will be back with more exciting customization in default Magento 2.

    Happy Coding. 🙂

    . . .

    Comment

    Add Your Comment

    Be the first to comment.

    Back to Top
    css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just received your message and our expert will get back to you shortly.
    Send Again
    Close