cancel
Showing results for 
Search instead for 
Did you mean: 

Create custom print order html output

Create custom print order html output

In the client dashboard>My Orders>View Order there is a print order option, that shows the order in html format. How do I divert the link to be produced by a custom file?

Currently it is being produced by the global file

vendor\magento\module-sales\view\frontend\templates\order\items.phtml 

This any changes I make to this file changes all pages using the file.

 

The current URL used for the output is: 

<?php echo $block->getPrintUrl($_order) ?>

How can I create a new link that will go to my custom file? And where do I put my custom file?