Display templates for orders – create order pdf’s or html documents

Create customised order notes, pdf’s, shipping notes or whatever print you’ll need.

Print order note, delivery notes, invoices and much more
https://app.automation.app/organization/display/

With templates you can create customised order notes, pdf’s, shipping notes and other order related documents.
The templates are simple to update and can make your workflow much more smooth.

Use simple HTML code to generate any pdf, A4 or HTML document you need. This way you can print order notes when you need them with updated data. Insert any data such as order comments, meta data or whatever you need. The templates use a simple thing called TWIG for inserting logic and variables.
For example if you want to write the first name of a customer just insert: {{firstname}}
With TWIG you can also create logical statements:
For example we might want to insert a text based on selected delivery option:

Notice: In the bottom of this post you can find pre-made HTML templates.

 

Loading test data for inserting variables

When building, you’ll need some data from the customer. In order to easily find out what this data technically looks like, you can “Load latest order”. By using the “given_name”, formatted like this {{ given_name }} you’ll dynamically insert the name of the customer “Lucy” in this example.

 

Display template get test data from your shop

 

 

Pre-made HTML templates

First a few simple examples to guide you on the logic and snippets that are often used. In the bottom you find ready made code

Listing all the products in an order. The list of products in a table – this example lists sku and price and loops through all products in the order.

PDF templates: How to get started with printing order note, delivery notes, invoices and much more

https://app.automation.app/organization/display/

Notice that the field names might not match for the meta data.

















{%if customer %}

{% endif %}


{%if customer_note %}

{% endif %}

{{ billing_address.locality }}, {{ billing_address.postal_code }} – (Support) {{ billing_address.telephone }} – {{ system.domain }} – {{ email }}

KUNDENS INFORMATIONER
{{ customer.first_name }} {{ customer.last_name }}
{{ customer.billing_address.organization }}
{{ customer.billing_address.address_line_1 }}
{{ customer.billing_address.locality }}, {{ customer.billing_address.postal_code }}
{{ customer.email }}
{{ customer.billing_address.telephone }}

FEST ADRESSEN (Evt. Levering)
{{ customer.shipping_address.given_name }} {{ customer.shipping_address.family_name }}
{{ customer.shipping_address.organization }}
{{ customer.shipping_address.address_line_1 }}
{{ customer.shipping_address.locality }}, {{ customer.shipping_address.postal_code }}
{{ customer.shipping_address.telephone }}

{% for order in order_items %}

{% endfor %}

Vare Pris Antal Totalpris

{{ order.name }}

SKU: {{ order.sku }}
Weight: {{ order.weight }}

{{ (order.price/100)|number_format }} {{ order.qty_ordered }} {{ (order.total/100)|number_format }}
Subtotal DKK {{ (total/100)|number_format }}
Shipping DKK {{ (shipping_total)/100|number_format }}
Tax DKK {{ (total_tax/100)|number_format }}
Total DKK {{ (total/100)|number_format }}
 
KUNDEBEMÆRKNING
{{ customer_note }}
LEJEPERIODEN
Fra Dato: {{ meta.from_date.value }}
Til Dato: {{ meta.to_date.value }}
Hvornår skal du bruge det: {{ meta.hvornar_skal_du_bruge_det.value }}
{%if store %}

Lageradresse
{{ store.name }}
{{ store.address.address_line_1 }}
{{ store.address.postal_code }} {{ store.address.locality }}
Åbningstid: {{ store.opening_hours }}

{% endif %}

HANDELSBETINGELSER
Udstyret er ved udlevering i god stand samt funktionsdygtigt.

Ved underskrift forpligter du dig til følgende:

1. At du har modtaget alt udstyr, der er specificeret ud på denne liste.

2. At aflevere det udleverede udstyr i samme stand som modtaget.


3. At aflevere udstyret inden for den aftalte tidsramme. Afleveres det første hverdag efter aftalte tidsramme opkræves 50% ekstra af den samlede lejepris. Afleveres det efter
første hverdag efter aftalte tidsramme opkræves 100% ekstra af den samlede pris per uge.
Hvis udstyret ikke er tilbageleveret inden 1 uger efter aftalte dato, betragtes udstyret som stjålet og lejer vil blive politianmeldt.

4. Herudover bekræfter du vores generelle Handelsbetingelser, som kan findes på vores hjemmeside www.lf2.wpengine.com/handelsbetingelser.


Alt udstyr testet inden udlevering


Dato: _________________________________________
Underskrift kunde:


_________________________________________
Underskrift virksomhed:


_________________________________________


Leave a comment