{extends file="layout.tpl"} {* Security *} {block name="no-return-functions" prepend} {check_auth role="CUSTOMER" login_tpl="login"} {/block} {* Breadcrumb *} {block name='no-return-functions' append} {$breadcrumbs = [ ['title' => {intl l="Account"}, 'url'=>{url path="/account"}] ]} {/block} {block name="body-class"}page-account{/block} {block name="main-content"}

# {intl l="My Account"}

{hook name="account.top"}

#### {intl l="Personal Information"}

{loop type="customer" name="customer.info"}

{loop type="title" name="customer.title.info" id=$TITLE}{$SHORT}{/loop} {$FIRSTNAME|ucwords} {$LASTNAME|upper}

{loop type="address" name="address.default" default="true"}

- {format_address address=$ID html_tag='address' html_class='adr'}
- {if $PHONE != ""} {$PHONE} {/if} {if $CELLPHONE != ""} {$CELLPHONE} {/if} {mailto address=$EMAIL encode="hex"}
- {intl l="Change my account information"} {intl l="Change my password"}

{/loop}
{/loop}

#### {intl l="My Address book"}

{intl l="Add a new address"}

{loop type="address" name="customer.addresses" customer="current"}
{if $DEFAULT === 1} {$LABEL|default:$default} {intl l="Main Address"} {else} {$LABEL|default:$default} {/if} | {loop type="title" name="customer.title.info" id=$TITLE}{$SHORT}{/loop} {$FIRSTNAME|ucwords} {$LASTNAME|upper} {if $COMPANY} {$COMPANY} {/if} {if $CELLPHONE != ""} {$CELLPHONE} {/if} {if $PHONE != ""} {$PHONE} {/if} | {intl l="Edit"} {if $DEFAULT != 1} {intl l="Cancel"} {/if}
{/loop}

#### {intl l="My Orders"}

{ifloop rel="customer.orders"}

{intl l="Order number"} | {intl l="Seller"} | {intl l="Date"} | {intl l="Amount"} | {intl l="Status"} | {intl l="View"}
--- | --- | --- | --- | --- | ---
{loop type="order" name="customer.orders"} {loop type="ampseller_order" name="seller-order" order_id=$ID}
{$REF} | {$AMP_SELLER_NAME} | {format_date date=$CREATE_DATE} | {format_money number=$TOTAL_TAXED_AMOUNT_POSTAGE currency_id=$CURRENCY} | {loop type="order-status" name="order.status" id={$STATUS}} {assign "orderStatusCode" "order_$CODE"} {if #$orderStatusCode# == ''} {assign "defaultLabel" "label-default"} {assign "orderStatusLabel" $CODE} {else} {assign "defaultLabel" ''} {assign "orderStatusLabel" #$orderStatusCode#} {/if} {$TITLE} {/loop} | {intl l="Order details"}
{/loop}
{intl l="Order total amount"} | {format_money number=$TOTAL_TAXED_AMOUNT currency_id=$CURRENCY} |
{/loop}

{/ifloop} {elseloop rel="customer.orders"}
{intl l="Warning"}! {intl l="You don't have orders yet."}
{/elseloop}
{hookblock name="account.additional" fields="id,title,content"} {forhook rel="account.additional"}

#### {$title}

{$content nofilter}
{/forhook} {/hookblock}
{hook name="account.bottom"}
{/block} {block name="stylesheet"} {hook name="account.stylesheet"} {/block} {block name="after-javascript-include"} {hook name="account.after-javascript-include"} {/block} {block name="javascript-initialization"} {hook name="account.javascript-initialization"} {/block}