I want to get download invoice PDF link in customer dashboard account, when they are inside their order.
Therefore I need to edit default code in file: /app/design/frontend/theme/theme/template/sales/order/info/buttons.phtml
The default code is to download order PDF, but I want to change that to Invoice PDF.
Default code:
<a href="<?php echo $this->getPrintUrl($_order) ?>" class="link-print" onclick="this.target='_blank';"></a>
How can I achieve that?
Best Answer
You can add Invoice link directly
Please check below example.
Go to /app/design/frontend/theme/theme/template/sales/order/invoice/items.phtml
You can directly download Invoice pdf