Members: Credit Cards
The Credit Cards page allows your customers to see and manage their stored cards on the Aurora Front-end.
This article describes how to access and manage the Credit Cards and provides a list of variables made available to the Front-end Templates.
Introduction
The Credit Cards page allows your customers to see and manage their stored cards on the Aurora Front-end. It allows you to shows a list of all stored cards which have been automatically saved after each completed order.
You are able to include an "X" button on each item, so it can easily be removed at any time.
Clicking the button will result in a confirmation dialog appearing, allowing you to request confirmation, but once confirmed, the deletion cannot be undone.
Managing Your Credit Cards
Where to access the Credit Cards Page
You can navigate to it when you are logged in from My Account menu at the top and then selecting the Credit Cards link from the sub menu. Please see the example provided by the Aurora Demo Store below.
http://demo.auroracommerce.com/members/creditcards
Where to find the Credit Cards Page Templates
The template that should be used to control the content of the Credit Cards Page should be placed inside your template directory and named as follows:
templates/your-template-dir/members/creditcards.tpl.html
Variables available in the Credit Cards page
The following is a list of variables that can be accessed by the Aurora Front-end Templates.
Variable name | Type | Description |
---|---|---|
$smarty.request.deleted | bool | Used to determine whether to show the successful deletion message or not. |
$smarty.request.error_card | bool | Used to determine whether to show the error deletion message or not. |
$card_details | Array ( $card ) | An array containing all stored credit cards. |
$card.id | int | Unique card identifier in our database. |
$card.date_created | string | Date on which the card was stored in the system. Format: "Y-m-d H:i:s". |
$card.card_name | string | Unique card name. |
$card.card_number | string | Last four digits of the credit card. Example: 0006 |
$card.card_expiry | string | Expiration date. Format: "my". Example: 0520 |
$card.card_type | string | Card manufacturer. Example: VISA, DELTA, etc. |
Related Aurora Demo Example Templates
templates/example.com/members/creditcards.tpl.html
Updated over 2 years ago