filipburman Posted May 17, 2016 Share Posted May 17, 2016 I'm using a normal text field on all my products, so customers can write if they want something customised on the product. But this text doesn't end up on the pdf invoice when I print it. And I really need it there. Someone who can help with adding the code of the invoice template? Thanks Link to comment Share on other sites More sharing options...
tuk66 Posted May 18, 2016 Share Posted May 18, 2016 Customized data is normally shown on the invoice. Do you use the default one? Link to comment Share on other sites More sharing options...
filipburman Posted May 18, 2016 Author Share Posted May 18, 2016 Thanks for the reply, Yes I use the default invoice. I have customised it a bit, but haven't removed anything that would be regarding the Customized data and text field.I'm using the invoice-b2b.tpl , and where in this file is the code for the text field? Link to comment Share on other sites More sharing options...
tuk66 Posted May 19, 2016 Share Posted May 19, 2016 This snippet prints customized data: {foreach $order_detail.customizedDatas as $customization} <tr style="line-height:6px;background-color:{$bgcolor}; "> <td style="line-height:3px; text-align: left; width: 60%; vertical-align: top"> {foreach $customization.datas as $customization_types} <blockquote> {foreach $customization_types as $customization_infos name=custo_foreach} {$customization_infos.name}: {$customization_infos.value} {if !$smarty.foreach.custo_foreach.last}<br /> {else} <div style="line-height:0.4pt"> </div> {/if} {/foreach} </blockquote> {/foreach} </td> <td style="text-align: right; width: 15%"></td> <td style="text-align: center; width: 10%; vertical-align: top">({$customization.quantity})</td> <td style="width: 15%; text-align: right;"></td> </tr> {/foreach} Link to comment Share on other sites More sharing options...
filipburman Posted May 19, 2016 Author Share Posted May 19, 2016 I found it in the template as well.But It doesn't work. Have been trying everyhting now. The only thing I get is two (). See attached picture. 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