Members: Mailing Lists

The Mailing Lists page allows your customers to manage their subscriptions to mailing lists on the Aurora Front-end.

This article describes how to access and manage the Mailing Lists Page and provides a list of variables made available to the Front-end Templates.

Introduction

The Mailing Lists Page details all available mailing lists to which the user can subscribe. Against each list there is a checkbox showing whether the user has subscribed for it. Clicking the Update Subscriptions button will save the current state of each subscription.

Managing Your Mailing Lists Subscriptions

Where to access the Mailing Lists Page

You can navigate to it when you are logged in from the My Account menu at the top of the Aurora Demo Store's homepage and then by selecting the Mailing Lists link from the sub menu. Please see the example provided by the Aurora Demo Store below.

http://demo.auroracommerce.com/members/mailing-lists

Where to find the Mailing Lists Page Templates

The template that should be used to control the content of the Mailing Lists Page should be placed into your template directory and named as follows:

templates/your-template-dir/members/mailing-lists.tpl.html

Variables available in the Mailing Lists page

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

The ID of the user who created the review

Variable nameTypeDescription
$pageTypeArray ( String )Determine the main area of the site you are on. Please refer to Global Template Variables article for more information.
$trackingArray ( String )An array of Affiliate and Traffic Tracking Codes to the Aurora Front-end.
$updatedboolSignifies whether the data was updated upon submitting the form.
$email_addressstringThe user's email address.
$mailing_listsArray ( $mailing_list )An array, containing all the available mailing lists.
$mailing_listContainerAn array containing the details for a single Mailing List.
$mailing_list.idintThe Internal Unique ID of the Mailing List.
$mailing_list.list_nameStringThe name of the Mailing List.
$mailing_list.date_createdDate Stringe.g. "2015-08-24 15:35:48".
$mailing_list.date_modifiedDate Stringe.g. "2015-08-24 15:35:48".
$user_mailing_listsArray ( int )An array, containing the IDs of all the mailing lists that the user has already subscribed for.

Related Aurora Demo Example Templates
templates/example.com/members/mailing-lists.tpl.html