Jump to content

[SOLVED] Disable invoice download from F.O.


DARKF3D3

Recommended Posts

I post my solution for someone that like me want to hide invoices only from front office.

 

history.tpl

delete or comment line 79 to 87 (on ps1.6.0.6)

<td class="history_invoice">
{if (isset($order.invoice) && $order.invoice && isset($order.invoice_number) && $order.invoice_number) && isset($invoiceAllowed) && $invoiceAllowed == true}
<a class="link-button" href="{$link->getPageLink('pdf-invoice', true, NULL, "id_order={$order.id_order}")|escape:'html':'UTF-8'}" title="{l s='Invoice'}" target="_blank">
<i class="icon-file-text large"></i>{l s='PDF'}
</a>
{else}
-
{/if}
</td>

order-detail.tpl

delete or comment line 41 to 46 (on ps1.6.0.6)

{if $invoice AND $invoiceAllowed}
<p>
<i class="icon-file-text"></i>
<a target="_blank" href="{$link->getPageLink('pdf-invoice', true)}?id_order={$order->id|intval}{if $is_guest}&secure_key={$order->secure_key}{/if}">{l s='Download your invoice as a PDF file.'}</a>
</p>
{/if}

 

  • Like 2
Link to comment
Share on other sites

×
×
  • Create New...