when customer do
My orders-> View order -> Print order
instead of printing the order it has some strange images with login info instead. It looks like the attached image below.
I notice that button points to /var/www/html/vendor/magento/module-sales/view/frontend/templates/order/info/buttons.phtml
<div class="actions">
<?php $_order = $block->getOrder() ?>
<?php if ($this->helper('MagentoSalesHelperReorder')->canReorder($_order->getEntityId())) : ?>
<a class="action reorder" href="<?php /* @escapeNotVerified */ echo $block->getReorderUrl($_order) ?>">
<span><?php /* @escapeNotVerified */ echo __('Reorder') ?></span>
</a>
<?php endif ?>
<a class="action print"
href="<?php /* @escapeNotVerified */ echo $block->getPrintUrl($_order) ?>"
onclick="this.target='_blank';">
<span><?php /* @escapeNotVerified */ echo __('Print Order') ?></span>
</a>
<?php echo $block->getChildHtml(); ?>
</div>
As suggested from a similar post I tried modifying sales_order_print.xml from this link here,
On account pages , In My order section Print order page not showing order detail
however this does nothing.
Any help? thanks!
this is the print screen I get instead of an invoice of how it actually looks like on screen.