Jump to content

Disable Front Office possibility to download PDF Invoices


Recommended Posts

  • 2 weeks later...

Thanks Tuk, I partially solve the problem.

On file history.tpl i remove:

<th class="item">{l s='Invoice'}</th>

And:

				<td class="history_invoice">
				{if (isset($order.invoice) && $order.invoice && isset($order.invoice_number) && $order.invoice_number) && isset($invoiceAllowed) && $invoiceAllowed == true}
					<a href="{$link->getPageLink('pdf-invoice.php', true)}?id_order={$order.id_order|intval}" title="{l s='Invoice'}"><img src="{$img_dir}icon/pdf.gif" alt="{l s='Invoice'}" class="icon" /></a>
					<a href="{$link->getPageLink('pdf-invoice.php', true)}?id_order={$order.id_order|intval}" title="{l s='Invoice'}">{l s='PDF'}</a>
				{else}-{/if}
				</td>

In this way i remove the icon to download the invoice from the order list, the problem is that opening the order detail there's another link to download it, but i don't find where is placed. I think that maybe it's on another file.

Link to comment
Share on other sites

Hey tuk, thanks for the tip.

Fortunatelly after some search i find the code and removed it (i prefer to completely remove the code insted of hidden it).

 

File name: order-detail.tpl

 

Part to delete:

{if $invoice AND $invoiceAllowed}
<p>
<img src="{$img_dir}icon/pdf.gif" alt="" class="icon" />
<a href="{$link->getPageLink('pdf-invoice.php', 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}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...