David57 Posted May 7, 2013 Share Posted May 7, 2013 Bonjour, Je cherche à modifier le lien qui génère une facture Pdf en page history. Je voudrais qu'il pointe vers un nouveau template pdf pour un statut de la commande particulier (id order_state:13) Comment ajouter une condition supplémentaire à partir du fichier history.tpl? Voici le code qui appelle les liens pdf dans la colonne "facture" dans "history.tpl" : <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', true, NULL, "id_order={$order.id_order}")}" title="{l s='Invoice'}" target="_blank"><img src="{$img_dir}icon/pdf.gif" alt="{l s='Invoice'}" class="icon" /></a> <a href="{$link->getPageLink('pdf-invoice', true, NULL, "id_order={$order.id_order}")}" title="{l s='Invoice'}" target="_blank">{l s='PDF'}</a> {else}-{/if} </td> D'avance merci! Link to comment Share on other sites More sharing options...
David57 Posted May 9, 2013 Author Share Posted May 9, 2013 up 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