Akkik Posted April 5, 2016 Share Posted April 5, 2016 Cześć, Mam Preste 1.6.1.1. Chciałbym zmodyfikować generowane przez sklep faktury, a mianowicie: - Pod header'em faktury mam 3 kolumny: Dane sklepu, Adres dostawy i adres rozliczeniowy, - W "Dane sklepu" mam: Nazwę sklepu, Adres, Kod pocztowy, Miasto, Kraj i Telefon, - Chciałbym zamiast Telefonu wrzucić numer NIP, - Wiem, że w stopce mam numer NIP i REGON itp. (free_text) ale zależy mi żeby jeszcze numer NIP był we wspomnianej wyżej kolumnie, W którym pliku mogę zmodyfikować co się wypisuje w tej kolumnie na fakturze? Pozdrawiam. Link to comment Share on other sites More sharing options...
endriu107 Posted April 5, 2016 Share Posted April 5, 2016 Katalog pdf na serwerze zawiera pliki szablonu faktur. Link to comment Share on other sites More sharing options...
Akkik Posted April 5, 2016 Author Share Posted April 5, 2016 Owszem jest tam szablon invoice.addresses-tab.tpl ale w nim jest opisany rozkład na stronie: <table id="addresses-tab" cellspacing="0" cellpadding="0"> <tr> <td width="33%"><span class="bold"> </span><br/><br/> {if isset($order_invoice)}{$order_invoice->shop_address}{/if} </td> <td width="33%">{if $delivery_address}<span class="bold">{l s='Delivery Address' pdf='true'}</span><br/><br/> {$delivery_address} {/if} </td> <td width="33%"><span class="bold">{l s='Billing Address' pdf='true'}</span><br/><br/> {$invoice_address} </td> </tr> </table> Chciałbym się dowiedzieć gdzie będe mógł zmodyfikować to co jest zapisane w zmiennych "order_invoice" i "shop_address"? Link to comment Share on other sites More sharing options...
tuk66 Posted April 6, 2016 Share Posted April 6, 2016 Chciałbym się dowiedzieć gdzie będe mógł zmodyfikować to co jest zapisane w zmiennych "order_invoice" i "shop_address"? Zmienne tworzone są w tych plikach/metod: The variables are created in these files/methods: /classes/pdf/HTMLTemplateInvoice.php - getContent() /classes/pdf/HTMLTemplate.php - getFooter() 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