DARKF3D3 Posted January 12, 2014 Share Posted January 12, 2014 I would like to send automatically (via email) the invoice to the customer when generate. It's possible to do it and to remove the possibility from the user to download the invoice from its account? Link to comment Share on other sites More sharing options...
tuk66 Posted January 14, 2014 Share Posted January 14, 2014 Use CSS atribute display:none for all PDF related DOM items on customer's account page. You can find these items by Firebug in Firefox or F12 key in Chrome. Link to comment Share on other sites More sharing options...
DARKF3D3 Posted January 25, 2014 Author Share Posted January 25, 2014 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 More sharing options...
tuk66 Posted January 26, 2014 Share Posted January 26, 2014 Try this: .info-order p img, .info-order p a { display: none } Link to comment Share on other sites More sharing options...
DARKF3D3 Posted January 27, 2014 Author Share Posted January 27, 2014 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now