Jump to content

Edit History

chmielu182

chmielu182

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>

 

chmielu182

chmielu182

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

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>

 

chmielu182

chmielu182

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

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}

            {if isset($free_text)}
                {$free_text|escape:'html':'UTF-8'}<br />
            {/if}
        </td>
        
    </tr>
</table>

 

×
×
  • Create New...