Jump to content
  • 0

Edycja faktury - dodanie kolumny z danymi sprzedawcy - Presta 1.7.5


chmielu182

Question

Sam potrzebowałem, ale nie znalazłem, więc mogę się podzielić tym co zrobiłem (PrestaShop 1.7.5).

Sposób bez pobierania danych z bazy danych, tylko ręcznie, ale mnie zadowala:

w pliku \pdf\invoice.addresses-tab.tpl edytowałem wiersz tabeli addresses-tab następująco:
 

<table id="addresses-tab" cellspacing="0" cellpadding="0">
    <tr>
        <td width="33%">{if $delivery_address}
            <br/><br/>
            <span class="bold">{l s='Delivery Address' d='Shop.Pdf' pdf='true'}</span>
            <br/><br/>
                {$delivery_address}
            {/if}
        </td>
        
        <td width="33%">
            <br/><br/>
            <span class="bold">{l s='Billing Address' d='Shop.Pdf' pdf='true'}</span><br/><br/>
                    {$invoice_address}
        </td>
        
        <td width="34%" >
            <br/><br/>
            <span class="bold">Dane Sprzedawcy</span>
            <br/>
            <br/>
            nazwa mojej firmy <br/>
            nazwa mojej firmy c.d. <br/>
            ulica <br/>
            kod pocztowy i miasto
            <br />
            {if isset($shop_details)}
                {$shop_details|escape:'html':'UTF-8'}<br />
            {/if}

        </td>
        
    </tr>
</table>

 

Edited by chmielu182 (see edit history)
Link to comment
Share on other sites

2 answers to this question

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...