{% set orderTable %}
Details
  • {{ "Customer"|t }}: {{ order.customer.email }}
  • {{ "Total"|t }}: {{ order.totalPrice|currency(order.currency) }}
  • {{ "Paid"|t }}:{{ order.totalPaid|currency(order.currency) }} {{ order.datePaid|date('short') }}
  • {{ "Date"|t }}: {{ order.dateOrdered|date('medium') }}
Shipping Address
{% if order.shippingAddress %} {% include 'shop/_includes/addresses/address' with { address: order.shippingAddress } %} {% endif %}
Billing Address
{% if order.billingAddress %} {% include 'shop/_includes/addresses/address' with { address: order.billingAddress } %} {% endif %}
{% for item in order.lineItems %} {% endfor %} {% for adjustment in order.adjustments %} {% endfor %}
Item Unit Price Quantity Total
{{ item.description }}
SKU: {{ item.sku }}
{% if item.onSale %} {{ item.price|currency(order.currency) }} {{ item.salePrice|currency(order.currency) }} {% else %} {{ item.price|currency(order.currency) }} {% endif %} {{ item.qty }} {{ item.total|currency(order.currency) }}
{{ adjustment.type }} {{ adjustment.name }}
({{ adjustment.description }})
{{ adjustment.amount|currency(order.currency) }}
Item Total: {{ order.itemTotal|currency(order.currency) }}

Total: {{ order.totalPrice|currency(order.currency) }}

{% endset %} {# Use the option param passed into the pdf template to show different order pdf's depending on the context #} {% if option is defined %} {% switch option %} {% case "receipt" %}

Receipt for Order #{{ order.number[:7] }}

{{ orderTable }} {% case "ajax" %}

NA

{% default %}

Order #{{ order.number[:7] }}

{{ orderTable }} {% endswitch %} {% endif %}