Members: Orders

The orders page allows members to see their order history.

Template Variables

VariableDescription
$ordersA list of the members recent orders.

This is limited to the 5 most recent orders by default, but can increased by using the "limit" request parameter.

Calculating an Order Total

The following variables are available for each order:

VariableDescription
$order_total_gbpThe order total in the chargeable currency
$shipping_amount_gbpThe shipping total including tax in the chargeable currency
$total_discount_gbpThe total discount including promotion and coupon discounts in the chargeable currency

These should be use to calculate the order total as follows:

{assign var="order_total" value=$order.order_total_gbp+$order.shipping_amount_gbp-$order.total_discount_gbp}
{$order_total|displayPriceOrder:$order.currency_id:$order.exchange_rate}

Disable Member Order Editing

The Disable Member Order Editing? setting (Store > Settings > Front-end > Members Area) determines if an order can be edited within the members area; although Aurora protects against orders from being edited on submission, it is advised that the relevant templates are also updated accordingly to improve customer experience.

Recommended updates:

  • Hide the Edit Order button respectively:

    members/order-details.tpl.html

    ...
    {if !$config.disable_frontend_edit_order}
    <div class="template_fr"><a href="{if $language_iso}/{$language_iso}{/if}/members/edit-order/{$order.id}" class="members_button">{site_text page="Member Summary" part="Link: Edit Order"}</a></div>
    {/if}
    ...
    
  • Update the Edit Order page to respond accordingly:

    members/edit-order.tpl.html

    ...
    {if $config.disable_frontend_edit_order}
    <p>{site_text page="Member Edit Order" part="Error: Order Cannot Be Edited"}</p>
    {elseif $delivery_address}
    ...