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

NameTypeContent
$ordersArrayContainer for a data for each order
$orders.order_idIntegerOrder ID
$orders.order_totalNumericOrder Total Value
$orders.shipping_amountNumericShipping amount
$orders.date_createdDateTimeDate and Time of order creation
$orders.payment_typeTextType of the payment
$orders.payment_transactionArrayPayment transaction details
$orders.billing_addressArrayBilling Address of an order
$orders.delivery_addressArrayDelivery Address of an order
$orders.additional_fieldsArrayOrder Additional Field Data
$orders.despatchesArrayOrder Dispatches
$orders.basketArrayOrder 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>