Jump to content
  • 0
chmielu182

Edycja faktury - dodanie kolumny z danymi sprzedawcy - Presta 1.7.5

Question

Posted (edited)

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)

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More