Members: Address Book

The Address Book Page lists all of your entered billing and delivery addresses for a user and also gives you the option to add, edit and delete addresses.

This article provides details about Address Book Page, a list of used variables and how to use them.

Introduction

The Address Book Page lists all of your entered billing and delivery addresses for a user and also gives you the option to add, edit and delete addresses.

Even though it will display every address book, only those with a unique first name, last name and postcode will appear as options on the checkout. This is to avoid a huge list of previously selected addresses appearing.

Within your templates folder, you will find in the members directory a file called addresses.tpl.html. This file will contain all of the Smarty logic that you can use to determine exactly how you want your Address Book Page to look.

Managing your Address Book Page

Where to access the Address Book Page

In order to access the Address Book Page you should be logged in and you should visit the My Account page. Then you should navigate to Address Book page by the submenu from the sidebar.

Also you can navigate to the page if you type in the browser's address bar your store's domain and append /members/addresses. Please see the example provided by the Aurora Demo Store below.

https://demo.auroracommerce.com/members/addresses

Where to find the Address Book Page Templates

This is the template that should be used to control the content of the Address Book Page and should be placed into your template directory and named as follows:

templates/your-template-dir/members/addresses.tpl.html

Variables available in the Address Book Page

The following is a list of variables that can be accessed by the Aurora Front-end Templates.

Variable nameTypeDescription
$invoice_addressArrayThis variable contains all of your billing addresses.
$delivery_addressArrayThis variable contains all of your delivery addresses.
$country_listArrayThis variable contains the list of available countries.
$pageArrayThis variable contains the address data.

This variable only exists in the template on unsuccessful addition or on successful edit of an address.
$correctBooleanThis variable can only be set to true

This variable is only set on successful address submission.
$errorBooleanThis variable is can only be set to true

This variable is only set on unsuccessful address submission.
$add_addressBooleanThis variable can be set to true

This variable is only set when add_address is passed in the request parameters.
$address_typeStringThis variable contains the address type value of the address

This variable exists in the template on successful edit or when passed add_address in the request parameters.
$pageTypeArrayDetermines the main area of the site you are on. Please refer to Global Template Variables article for more information.
$user_titlesArrayAn array of available user titles.
$trackingArrayAn array of Affiliate and Traffic Tracking Codes to the Aurora Front-end.