送货地址未在prestashop中添加pdf发票

时间:2016-01-08 09:53:33

标签: php pdf prestashop-1.6

发送地址未在prestashop中添加pdf发票。

我在prestashop上创建了一个商店,但在其pdf发票中,发送地址丢失了。

如何在pdf发票中添加送货地址?

请帮我解决这个问题。

<!-- invoicing -->
<tr>
    <td colspan="12">
          {$addresses_tab}
    </td>
</tr>

1 个答案:

答案 0 :(得分:1)

如果送货地址与发票地址相同,则不会显示送货地址栏。

如果要显示此块,可以编辑模板文件invoice.tpl 并替换:

{if !empty($delivery_address)}
                <table style="width: 100%">
                    <tr>
                        <td style="width: 50%">
                            <span style="font-weight: bold; font-size: 10pt; color: #9E9F9E">{l s='Delivery Address' pdf='true'}</span><br />
                             {$delivery_address}
                        </td>
                        <td style="width: 50%">
                            <span style="font-weight: bold; font-size: 10pt; color: #9E9F9E">{l s='Billing Address' pdf='true'}</span><br />
                             {$invoice_address}
                        </td>
                    </tr>
                </table>
{else}
                <table style="width: 100%">
                    <tr>

                        <td style="width: 50%">
                            <span style="font-weight: bold; font-size: 10pt; color: #9E9F9E">{l s='Billing & Delivery Address.' pdf='true'}</span><br />
                             {$invoice_address}
                        </td>
                        <td style="width: 50%">

                        </td>
                    </tr>
                </table>
{/if}

{if !empty($delivery_address)}
                <table style="width: 100%">
                    <tr>
                        <td style="width: 50%">
                            <span style="font-weight: bold; font-size: 10pt; color: #9E9F9E">{l s='Delivery Address' pdf='true'}</span><br />
                             {$delivery_address}
                        </td>
                        <td style="width: 50%">
                            <span style="font-weight: bold; font-size: 10pt; color: #9E9F9E">{l s='Billing Address' pdf='true'}</span><br />
                             {$invoice_address}
                        </td>
                    </tr>
                </table>
            {else}
                <table style="width: 100%">
                    <tr>
                        <td style="width: 50%">
                            <span style="font-weight: bold; font-size: 10pt; color: #9E9F9E">{l s='Delivery Address' pdf='true'}</span><br />
                             {$invoice_address}
                        </td>
                        <td style="width: 50%">
                            <span style="font-weight: bold; font-size: 10pt; color: #9E9F9E">{l s='Billing Address' pdf='true'}</span><br />
                             {$invoice_address}
                        </td>
                    </tr>
                </table>
            {/if}