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 name | Type | Description |
---|---|---|
$invoice_address | Array | This variable contains all of your billing addresses. |
$delivery_address | Array | This variable contains all of your delivery addresses. |
$country_list | Array | This variable contains the list of available countries. |
$page | Array | This variable contains the address data. This variable only exists in the template on unsuccessful addition or on successful edit of an address. |
$correct | Boolean | This variable can only be set to true This variable is only set on successful address submission. |
$error | Boolean | This variable is can only be set to true This variable is only set on unsuccessful address submission. |
$add_address | Boolean | This variable can be set to true This variable is only set when add_address is passed in the request parameters. |
$address_type | String | This 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. |
$pageType | Array | Determines the main area of the site you are on. Please refer to Global Template Variables article for more information. |
$user_titles | Array | An array of available user titles. |
$tracking | Array | An array of Affiliate and Traffic Tracking Codes to the Aurora Front-end. |
Updated over 2 years ago