Align the extra field include in invoice, packing slip and view orders in admin section

Hello,



How can I align the include extra fields to get the field behind the address field. The extra flield contains the addition to the address number, for example: A. It puts the A below the address though. See this image: [attachment=5839:Invoicetpl_problem.jpg]



The following line of code needs to be edited: {if $order_info.b_address && $profields_b.b_address || $order_info.b_address_2 && $profields_b.b_address_2}



{if $profields_b.b_address}{$order_info.b_address} {/if}{if $profields_b.b_address_2}{$order_info.b_address_2}{include file=“profiles/profiles_extra_fields.tpl” fields=$profile_fields.B}{/if}





The value of the include file profile_extra fields.tpl needs to be behind the {if $profields_b.b_address_2}
{$order_info.b_address_2} but it puts it underneath the {if $profields_b.b_address_2}
{$order_info.b_address_2} field.



Can somebody help me to change this? Full code is below and image example



Thanks in advance.



Edwin



{/if}
{if $profile_fields.B}
{assign var="profields_b" value=$profile_fields.B|fn_fields_from_multi_level:"field_name":"field_id"}

{$lang.bill_to}:


{if $order_info.b_firstname && $profields_b.b_firstname || $order_info.b_lastname && $profields_b.b_lastname}


{if $profields_b.b_firstname}{$order_info.b_firstname} {/if}{if $profields_b.b_lastname}{$order_info.b_lastname}{/if}


{/if}
{if $order_info.b_address && $profields_b.b_address || $order_info.b_address_2 && $profields_b.b_address_2}


{if $profields_b.b_address}{$order_info.b_address} {/if}{if $profields_b.b_address_2}{$order_info.b_address_2}{include file="profiles/profiles_extra_fields.tpl" fields=$profile_fields.B}{/if}


{/if}
{if $order_info.b_zipcode && $profields_b.b_zipcode || $order_info.b_city && $profields_b.b_city || $order_info.b_state_descr && $profields_b.b_state}


{if $profields_b.b_zipcode}{$order_info.b_zipcode} {/if}{if $profields_b.b_city}{$order_info.b_city}{if $profields_b.b_state},{/if} {/if}{if $profields_b.b_state}{$order_info.b_state_descr} {/if}


{/if}
{if $order_info.b_country_descr && $profields_b.b_country}


{$order_info.b_country_descr}


{/if}
{if $order_info.b_phone && $profields_b.b_phone}


{if $profields_b.b_phone}{$order_info.b_phone} {/if}


{/if}

{/if}
{if $profile_fields.S}
{assign var="profields_s" value=$profile_fields.S|fn_fields_from_multi_level:"field_name":"field_id"}

{$lang.ship_to}:


{if $order_info.s_firstname && $profields_s.s_firstname || $order_info.s_lastname && $profields_s.s_lastname}


{if $profields_s.s_firstname}{$order_info.s_firstname} {/if}{if $profields_s.s_lastname}{$order_info.s_lastname}{/if}


{/if}
{if $order_info.s_address && $profields_s.s_address || $order_info.s_address_2 && $profields_s.s_address_2}


{if $profields_s.s_address}{$order_info.s_address} {/if}{if $profields_s.s_address_2}{$order_info.s_address_2}{include file="profiles/profiles_extra_fields.tpl" fields=$profile_fields.S}{/if}


{/if}
{if $order_info.s_city && $profields_s.s_city || $order_info.s_state_descr && $profields_s.s_state || $order_info.s_zipcode && $profields_s.s_zipcode}


{if $profields_s.s_zipcode}{$order_info.s_zipcode} {/if}{if $profields_s.s_city}{$order_info.s_city}{if $profields_s.s_state},{/if} {/if}{if $profields_s.s_state}{$order_info.s_state_descr} {/if}


{/if}
{if $order_info.s_country_descr && $profields_s.s_country}


{$order_info.s_country_descr}


{/if}
{if $order_info.s_phone && $profields_s.s_phone}


{if $profields_s.s_phone}{$order_info.s_phone} {/if}


{/if}


Invoicetpl_problem.jpg

Hi



tag switches to the next line




Lucien

Sorry, but the
were already removed in the code provides. that doesn't do the trick. Anyone else?

Hi,

test



core

fn.cpmmon.php

ligne 3000

$media = & Media::predefined('A4');

$media->set_landscape(false);

$media->set_margins(array('left' => 10, 'right' => 10, 'top' => 10, 'bottom' => 0));

[color=#ff0000][size=5] $media->set_pixels(820);[/size][/color]



[size=5][size=3]Lucien[/size][/size]