<% include SilverShop\Includes\AccountNavigation %>

<%t SilverShop\Page\AccountPage_AddressBook.Title 'Default Addresses' %>

<%-- If you want the old dropdown system back you can just use $DefaultAddressForm here instead --%> <% if $CurrentMember.AddressBook %> <% loop $CurrentMember.AddressBook %>
<% if $ID == $CurrentMember.DefaultShippingAddressID %>
<%t SilverShop\Page\AccountPage_AddressBook.DefaultShippingAddress 'Default Shipping Address' %>
<% end_if %> <% if $ID == $CurrentMember.DefaultBillingAddressID %>
<%t SilverShop\Page\AccountPage_AddressBook.DefaultBillingAddress 'Default Billing Address' %>
<% end_if %>
<% include SilverShop\Model\Address %>
<% if $ID != $CurrentMember.DefaultShippingAddressID %> <%t SilverShop\Page\AccountPage_AddressBook.MakeDefaultShipping 'Make Default Shipping' %> <% end_if %> <% if $ID != $CurrentMember.DefaultBillingAddressID %> <%t SilverShop\Page\AccountPage_AddressBook.MakeDefaultBilling 'Make Default Billing' %> <% end_if %> <%t SilverShop\Page\AccountPage_AddressBook.DeleteAddress 'Delete this address' %>
<% end_loop %> <% else %>
<%t SilverShop\Page\AccountPage_AddressBook.NoAddress 'No addresses found.' %>
<% end_if %>

<%t SilverShop\Page\AccountPage_AddressBook.CreateNewTitle 'Create New Address' %>

$CreateAddressForm