{if isset($DISPLAY_ORDER_LIST)}

{$LANG.orders.title_orders}

{if isset($ORDER_LIST)} {foreach from=$ORDER_LIST item=order} {/foreach} {else} {/if} {if isset($ORDER_LIST)} {/if}
  {$THEAD.cart_order_id}   {$THEAD.customer} {$THEAD.status} {$THEAD.date} {$THEAD.total}  
{$order.cart_order_id} {$order.name} {$order.status} {$order.date} {$order.prod_total} {$LANG.common.print} {$LANG.common.edit} {$LANG.common.delete}
{$LANG.orders.notify_orders_none}
{$LANG.form.check_uncheck} {$LANG.orders.with_selected}: {$LANG.common.then}
{/if} {if isset($DISPLAY_FORM)}

{$LANG.orders.title_order_summary}

{$LANG.common.print}

{$LANG.orders.title_status_change}
{if isset($DISPLAY_DASHBOARD)}
{/if}
{if isset($DISPLAY_OVERVIEW)} {if isset($DISPLAY_COMMENTS)}
{$LANG.orders.note_from} {$OVERVIEW_SUMMARY.first_name} {$OVERVIEW_SUMMARY.last_name}
"{$OVERVIEW_SUMMARY.customer_comments}"
{/if}
{$LANG.address.delivery_address} {$OVERVIEW_SUMMARY.name_d}
{if !empty($OVERVIEW_SUMMARY.company_name_d)}{$OVERVIEW_SUMMARY.company_name_d}
{/if} {$OVERVIEW_SUMMARY.line1_d}
{if !empty($OVERVIEW_SUMMARY.line2_d)}{$OVERVIEW_SUMMARY.line2_d}
{/if} {$OVERVIEW_SUMMARY.town_d}
{$OVERVIEW_SUMMARY.state_d}, {$OVERVIEW_SUMMARY.postcode_d}
{$OVERVIEW_SUMMARY.country_d}
{$LANG.address.billing_address} {$OVERVIEW_SUMMARY.name}
{if !empty($OVERVIEW_SUMMARY.company_name)}{$OVERVIEW_SUMMARY.company_name}
{/if} {$OVERVIEW_SUMMARY.line1}
{if !empty($OVERVIEW_SUMMARY.line2)}{$OVERVIEW_SUMMARY.line2}
{/if} {$OVERVIEW_SUMMARY.town}
{$OVERVIEW_SUMMARY.state}, {$OVERVIEW_SUMMARY.postcode}
{$OVERVIEW_SUMMARY.country}
{$LANG.catalogue.title_items} {foreach from=$PRODUCTS item=product}
{$product.quantity} x {$product.name} - {$product.product_code} ({$product.line_formatted}) {if $product.digital}[{$LANG.orders.reset_download_link}]{/if}{$product.price_total_formatted} {if $product.options}
{$product.options} {/if}
{/foreach}
{$LANG.basket.total_sub}:{$OVERVIEW_SUMMARY.subtotal}
{$LANG.basket.total_discount} {if !empty($OVERVIEW_SUMMARY.percent)}({$OVERVIEW_SUMMARY.percent}){/if}:{$OVERVIEW_SUMMARY.discount}
{$LANG.basket.shipping}:{$OVERVIEW_SUMMARY.shipping}
{if isset($TAX_SUMMARY)} {foreach from=$TAX_SUMMARY item=tax}
{$tax.tax_name}:{$tax.tax_amount}
{/foreach} {/if}
{$LANG.basket.total}:{$OVERVIEW_SUMMARY.total}
{$LANG.account.contact_details}
{$OVERVIEW_SUMMARY.email}
{$OVERVIEW_SUMMARY.phone}
{if !empty($OVERVIEW_SUMMARY.mobile)}
{$OVERVIEW_SUMMARY.mobile}
{/if}
{$OVERVIEW_SUMMARY.ip_address}
{$LANG.orders.title_shipping}
{$OVERVIEW_SUMMARY.ship_date}
{$OVERVIEW_SUMMARY.ship_method}
{$OVERVIEW_SUMMARY.ship_tracking}
{$OVERVIEW_SUMMARY.gateway}
{/if}

{$LANG.address.billing_address}

{$LANG.address.billing_address}
{$LANG.account.contact_details}

{$LANG.address.delivery_address}

{$LANG.address.delivery_address}
{$LANG.address.copy_from_billing}
{$LANG.orders.title_shipping}

{$LANG.orders.title_order_inventory}

{$LANG.common.delete}
{if isset($PRODUCTS)} {foreach from=$PRODUCTS item=product} {/foreach} {/if} {if isset($LIST_TAXES)} {foreach from=$LIST_TAXES item=tax} {/foreach} {/if}
{$LANG.common.quantity} {$LANG.catalogue.product_name} {$LANG.common.price_unit} {$LANG.common.price}  
{$product.name} {$LANG.common.delete}
{$LANG.common.add}
{$LANG.common.delete}
{$LANG.basket.total_sub}  
{if $SUMMARY.discount_type == "p"}%{/if}
{$LANG.basket.shipping}  
{$tax.type_name}: {$tax.display} {$LANG.common.remove}
{$tax.type_name}: {$tax.display} {$LANG.common.remove}
{$LANG.common.add}
{$LANG.common.delete}
{$LANG.basket.total_tax}  
{$LANG.basket.total} {$LANG.common.refresh}

{$LANG.orders.title_order_notes}

{if isset($LIST_NOTES)}{foreach from=$LIST_NOTES item=note}
{$LANG.common.delete}
{if !empty($note.author)}{$LANG.dashboard.note_by} {$note.author} - {/if}{$note.time}
{$note.content|nl2br}
{/foreach} {/if}
{$LANG.orders.title_note_add}
{$LANG.orders.note_explain_viewable}

{$LANG.orders.title_order_history}

{if isset($LIST_HISTORY)} {foreach from=$LIST_HISTORY item=history} {/foreach} {/if}
{$LANG.common.status} {$LANG.common.date_time}
{$history.status} {$history.updated}
{if isset($DISPLAY_TRANSACTIONS)}

{$LANG.orders.title_transaction_logs}

{if $DISPLAY_ACTIONS}{/if} {foreach from=$TRANSACTIONS item=transaction} {if isset($DISPLAY_ACTIONS)} {/if} {/foreach}
{$LANG.orders.transaction_id} {$LANG.common.status} {$LANG.common.amount} {$LANG.orders.gateway_name} {$LANG.common.date_time} {$LANG.common.notes}{$LANG.common.action}
{$transaction.trans_id} {$transaction.status} {$transaction.amount} {$transaction.gateway} {$transaction.time} {$transaction.notes} {foreach from=$transaction.actions item=action} {$action.title} {/foreach}
{/if} {if isset($DISPLAY_CARD)}

{$LANG.orders.title_card_details}

{$LANG.orders.title_card_details} {foreach from=$CARD_DATA item=data}
{/foreach}
{$LANG.common.delete}
{/if} {if isset($PLUGIN_TABS)} {foreach from=$PLUGIN_TABS item=tab} {$tab} {/foreach} {/if} {include file='templates/element.hook_form_content.php'}
{/if}