When I try to print an order from frontend customer account, the print layout is almost empty without any data. then I click on cancel and choose to print again and it shows fine.
I am using Magento 2.2.2 Open Source
Steps to reproduce:
Has someone else encountered this problem and fixed it?
I have found a solution on google, but not sure how to implement it since could not find where to write the code fix.
the suggestion was to call the print option after the page is loaded, with this code:
<script> require( [ 'jquery' ], function($) { $(function() { window.print(); }); } ); </script>
You can use the below location to place a code: