negus Posted February 17, 2014 Share Posted February 17, 2014 Hallo Leute Ich habe bemerkt das die Rechnungen bei mir mit einmal alle verschoben sind. Da werden Wörter einfach in eine neue Zeile gelegt z.B. Einzelprei s wobei das S nach oben gehört gibt, es eine Möglichkeit das zu ändern ? Wenn ja wo kann ich das ändern, es ist nicht das einzige was da schief läuft. PrestaShop™ 1.5.6.2 Gruß aus Berlin Link to comment Share on other sites More sharing options...
Gurkcity Posted February 18, 2014 Share Posted February 18, 2014 1. pdf abändern (im Ordner /pdf/ die tpl-Dateien ändern - alternativ /themes/deinTheme/pdf/) oder 2. im Back Office die Übersetzungen anpassen, damit dies in die Zelle passt: Lokalisierung > Übersetzungen > Übersetzungen pdf-Dateien Viele Grüße Chris Link to comment Share on other sites More sharing options...
tuk66 Posted February 21, 2014 Share Posted February 21, 2014 Können Sie beispielsweise eine Rechnung teilen? Can you share an invoice example? Link to comment Share on other sites More sharing options...
Whiley Posted February 22, 2014 Share Posted February 22, 2014 (edited) Hallo negus, in der Datei: /pdf/invoice.tpl nach <!-- / CUSTOMER INFORMATION --> musst du nur ein paar Prozentangaben ändern und zur Sicherheit Zeilenumbrüche mit breaks erzwingen, und zwar so: <td style="width: 85%; text-align: right"> <table style="width: 100%; font-size: 8pt;"> <tr style="line-height:4px;"> <td style="text-align: left; background-color: #4D4D4D; color: #FFF; padding-left: 10px; font-weight: bold; width: 41%">{l s='Product / Reference' pdf='true'}</td> <!-- unit price tax excluded is mandatory --> {if !$tax_excluded_display} <td style="background-color: #4D4D4D; color: #FFF; text-align: left; font-weight: bold; width: 12%">{l s='Unit Price' pdf='true'} <br >{l s='(Tax Excl.)' pdf='true'}</td> {/if} <td style="background-color: #4D4D4D; color: #FFF; text-align: left; font-weight: bold; width: 12%"> {l s='Unit Price' pdf='true'}<br> {if $tax_excluded_display} {l s='(Tax Excl.)' pdf='true'} {else} {l s='(Tax Incl.)' pdf='true'} {/if} </td> <td style="background-color: #4D4D4D; color: #FFF; text-align: right; font-weight: bold; width: 10%">{l s='Discount' pdf='true'}</td> <td style="background-color: #4D4D4D; color: #FFF; text-align: center; font-weight: bold; width: 13%">{l s='Qty' pdf='true'}</td> <td style="background-color: #4D4D4D; color: #FFF; text-align: left; font-weight: bold; width: {if !$tax_excluded_display}12%{else}22%{/if}"> {l s='Total' pdf='true'}<br> {if $tax_excluded_display} {l s='(Tax Excl.)' pdf='true'} {else} {l s='(Tax Incl.)' pdf='true'} {/if} </td> </tr> <!-- PRODUCTS --> {foreach $order_details as $order_detail} {cycle values='#FFF,#DDD' assign=bgcolor} <tr style="line-height:6px;background-color:{$bgcolor};"> <td style="text-align: left; width: 41%">{$order_detail.product_name}</td> <!-- unit price tax excluded is mandatory --> {if !$tax_excluded_display} <td style="text-align: right; width: 12%"> {displayPrice currency=$order->id_currency price=$order_detail.unit_price_tax_excl} </td> {/if} <td style="text-align: right; width: 12%"> {if $tax_excluded_display} {displayPrice currency=$order->id_currency price=$order_detail.unit_price_tax_excl} {else} {displayPrice currency=$order->id_currency price=$order_detail.unit_price_tax_incl} {/if} </td> <td style="text-align: right; width: 10%"> {if (isset($order_detail.reduction_amount) && $order_detail.reduction_amount > 0)} -{displayPrice currency=$order->id_currency price=$order_detail.reduction_amount} {else if (isset($order_detail.reduction_percent) && $order_detail.reduction_percent > 0)} -{$order_detail.reduction_percent}% {else} -- {/if} </td> <td style="text-align: center; width: 13%">{$order_detail.product_quantity}</td> <td style="width: 15%; text-align: right; width: {if !$tax_excluded_display}12%{else}22%{/if}"> {if $tax_excluded_display} {displayPrice currency=$order->id_currency price=$order_detail.total_price_tax_excl} {else} {displayPrice currency=$order->id_currency price=$order_detail.total_price_tax_incl} {/if} </td> Grüsse Whiley Edited February 22, 2014 by Whiley (see edit history) 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