Jump to content

Text fields on pdf Invoices


Recommended Posts

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...