Jump to content

Bericht van klant toevoegen aan PDF pakbon


Frankie M

Recommended Posts

Voeg dit fragment op de leveringsbon sjabloon (onder / pdf):

Add this snippet to the delivery slip template (under /pdf):

{if isset($order_invoice->note) && $order_invoice->note}
<div style="line-height: 1pt"> </div>
<table style="width: 100%">
    <tr>
        <td style="width: 15%"></td>
        <td style="width: 85%">{$order_invoice->note|nl2br}</td>
    </tr>
</table>
{/if}
Link to comment
Share on other sites

  • 8 months later...

Ik ben nog steeds aan het "stoeien" om het bericht dat de klant bij een order kan invullen, toe te voegen aan de pakbon PDF. (wijzigingen in vet)

 

1,

Dit heb ik veranderd in /public_html/classes/pdf/HTMLTemplateDeliverySlip.php

 

        $tpls = array(
            'style_tab' => $this->smarty->fetch($this->getTemplate('delivery-slip.style-tab')),
            'addresses_tab' => $this->smarty->fetch($this->getTemplate('delivery-slip.addresses-tab')),
            'summary_tab' => $this->smarty->fetch($this->getTemplate('delivery-slip.summary-tab')),
            'product_tab' => $this->smarty->fetch($this->getTemplate('delivery-slip.product-tab')),
            'payment_tab' => $this->smarty->fetch($this->getTemplate('delivery-slip.payment-tab')),
            'note_tab'    => $this->smarty->fetch($this->getTemplate('delivery-slip.note-tab')),
        );
        $this->smarty->assign($tpls);
 
2.
Het bestand delivery-slip.note-tab.tpl aangemaakt in /public_html/pdf en dit erin gezet
 
{if isset($order_invoice->note) && $order_invoice->note}
<div style="line-height: 1pt"> </div>
<table style="width: 100%">
    <tr>
        <td style="width: 15%"></td>
        <td style="width: 85%">{$order_invoice->note|nl2br}</td>
    </tr>
</table>
{/if}

 

3.

Dit heb ik veranderd in /public_html/pdf/delivery-slip.tpl

 

<tr>
<td colspan="7" class="left">
 
{$payment_tab}
 
 
</td>
<td colspan="5"> </td>
</tr>
 
<tr>
<td colspan="7" class="left">
 
{$note_tab}
 
</td>
<td colspan="5"> </td>
</tr>
 
En toch krijg ik de opmerking niet te zien op de PDF! Iemand enig idee waarom niet?
 
Met vr.gr.,
 
Frank
Link to comment
Share on other sites

  • 2 weeks later...

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...