czshopper Posted April 19, 2016 Share Posted April 19, 2016 I want modify invoice so it displays in total section prices with two decimals. So I modified the invoice.total-tab.tpl and filled apropriate variables in HTMLTemmplateInvoice.php. The problem is, that I have correctly filled variable (dumped): 'total_tax_incl_formatted' => '670.39 Kč' and I think, that template is also correct <tr class="bold big"> <td> {l s='Total' pdf='true'} </td> <td> {$footer.total_tax_incl_formatted} </td> </tr>but in the resulting pdf file is that value ("670.39 Kč") is displayed without currency (there is only "670.39"). I beleive, it is something trivial, which I do not know and solution will be easy. Can someone help me? Link to comment Share on other sites More sharing options...
tuk66 Posted April 19, 2016 Share Posted April 19, 2016 Use {displayPrice currency=$order->id_currency price=$footer.total_tax_incl_formatted} to show the currency. Link to comment Share on other sites More sharing options...
czshopper Posted April 19, 2016 Author Share Posted April 19, 2016 Yes, it works. But there is a big issue. It was original state of the template and it doesn't display decimal places. But anyway, thank you for your answer, 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