DARKF3D3 Posted September 1, 2014 Share Posted September 1, 2014 (edited) On PS 1.6 it's possible to disable the possibility to download the invoices from Front Office? I don't find any setting about that on B.O., it should be done editing the tpl files? Edited September 1, 2014 by DARKF3D3 (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted September 1, 2014 Share Posted September 1, 2014 Yes, I think the only way is to edit history and order-detail tpl files Link to comment Share on other sites More sharing options...
vekia Posted September 1, 2014 Share Posted September 1, 2014 you can disable invoices at all, then button will not appear in front office (orders> invoices in back office) Link to comment Share on other sites More sharing options...
tuk66 Posted September 1, 2014 Share Posted September 1, 2014 It depends on your PrestaShop version and theme, but in general, you can find all PDF icons and links (Firebug in Firefox, F12 in Chrome) and set display: none for all elements. Link to comment Share on other sites More sharing options...
DARKF3D3 Posted September 1, 2014 Author Share Posted September 1, 2014 Thanks to all for the help, so I think I'll siply hide with css. I asked because I wasn't sure about the possibility of disabling (from B.O) the possibility for the user to download invoice. Link to comment Share on other sites More sharing options...
DARKF3D3 Posted September 2, 2014 Author Share Posted September 2, 2014 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} 2 Link to comment Share on other sites More sharing options...
Recommended Posts