Members: Dispatch Page
The Members Dispatch page allows you to present your Order Dispatch Notes with Dispatch Barcodes (if you have this data configured in your Store) to your customers.
This article describes how to manage the templates for the dispatch notes section.
Introduction
The members dispatch page has been created to allow the rendering of order dispatch notes.
Members Dispatch Page
The relative URL to access the members dispatch page is structured as /members/dispatch/123,234,345 where 123,234,345 is a comma separated list of order ids.
This page can be accessed only by logged in users.
At the time of rendering the page, Aurora performs checks to see if the order ids provided in a URL are assigned to the currently logged in user. If they do not, data for those orders are not retrieved and passed to the template.
The template used for this page should be located within your templates directory and named as "members/dispatch.tpl.html".
Smarty variables
Name | Type | Content |
---|---|---|
$orders | Array | Container for a data for each order |
$orders.order_id | Integer | Order ID |
$orders.order_total | Numeric | Order Total Value |
$orders.shipping_amount | Numeric | Shipping amount |
$orders.date_created | DateTime | Date and Time of order creation |
$orders.payment_type | Text | Type of the payment |
$orders.payment_transaction | Array | Payment transaction details |
$orders.billing_address | Array | Billing Address of an order |
$orders.delivery_address | Array | Delivery Address of an order |
$orders.additional_fields | Array | Order Additional Field Data |
$orders.despatches | Array | Order Dispatches |
$orders.basket | Array | Order Items |
Example
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Dispatch Note</title>
</head>
<body>
{foreach from=$orders item="order"}
<div>
Dear {$order.delivery_address.firstname} {$order.delivery_address.lastname},<br/>
<br/>
Your order #{$order.order_id} has been dispatched.
</div>
<br/>
<br/>
{/foreach}
</body>
</html>
Members Summary & Orders Pages
Links to a members dispatch page can be created using the same method as link to order invoices.
Example:
<a href="{if $language_iso}/{$language_iso}{/if}/members/dispatch/{$order.id}" class="members_button" target="_blank">{site_text page="Member Orders" part="Link: Despatch Note" }</a>
Updated over 2 years ago