I think by not mentioning magento version I made a mistake. This question is related to Magento 2.1.5
I need specific answer regarding
How to add header and footer at sales order print page? i.e. /sales/order/print/order_id/3/
I have tried but being fresh at magento don't know how and where to add header and footer blocks in xml file.
Immediate help/guideline is required.
Best Answer
Inside your
page.xml
find the main structure tag namedprint
. There you can see no header section added there asdefault
handler has.copy the whole
header
block fromdefault
handler toprint
handler. There you will see onlyNow after adding the whole
header
block inprint
handler you need to go toapp\design\frontend\rwd\default\template\page\print.phtml
and add<?php echo $this->getChildHtml('header') ?>
afterbody
class.Now you are done. It will look like this
Hope you have got the idea about footer also. Enjoy !!