xairo Posted June 21, 2015 Share Posted June 21, 2015 Hi.I would like to edit my header file with this pattern <div> <table width="100%"> <tr> <!-- LOGO --> <td style="width: 35%"> {if $logo_path} <img src="{$logo_path}" style="width:{$width_logo}px; height:{$height_logo}px;" /> {/if} </td> <!-- END LOGO --> <td style="width: 25%"> </td> <!-- INVOICE DETAILS --> <td style="width: 40%" align="right"> <table style="width: 100%"> <tr> <td style="width: 50%; text-align: right"><strong>{l s='Order Number:' pdf='true'}</strong></td> <td style="text-align: left"> {$title|replace:'Faktura #':'':'htmlall':'UTF-8'}</td> </tr> <tr> <td style="width: 50%; text-align: right"><strong>{l s='Order Date:' pdf='true'}</strong></td> <td style="text-align: left"> {$order->date_add|date_format:"%Y.%m.%d"}</td> </tr> <tr> <td style="width: 50%; text-align: right"><strong>{l s='Order Number:' pdf='true'}</strong></td> <td style="text-align: left"> {$order->getUniqReference()}</td> </tr> <tr> <td style="width: 50%; text-align: right"><strong>{l s='Payment Method:' pdf='true'}</strong></td> <td style="text-align: left"> {foreach from=$order_invoice->getOrderPaymentCollection() item=payment} <span> {$payment->payment_method}</span> {foreachelse} <span> {l s='No payment' pdf='true'}</span> {/foreach} </td> </tr> </table> </td> <!-- INVOICE DETAILS END --> </tr> </table> </div> If I put this code to invoice-b2b.tpl it is working. When I paste it to the header.tpl there is an error while genereting file.Ther is no information. It just stopped in a half way of genereting header. FV000001(64).pdf And next question. What is the diference between invoice.tpl and invoice-b2b.tpl file? Link to comment Share on other sites More sharing options...
tuk66 Posted June 22, 2015 Share Posted June 22, 2015 Try to remove almost all elements and then add one after one and you will see where the problem is. 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