Members: Returns and Refunds

The Returns & Refunds Page allows your customers to submit a request for return/refund an item from the order or the whole order.

This article provides details about the Returns & Refunds Page, a list of used variables and how to use them.

Introduction

The Returns & Refunds Page allows your customers to submit a request to return/refund an item from the order or the whole order.

Within your templates folder, you will find in the members directory a file called returns.tpl.html. This file will contain all of the Smarty logic that you can use to determine exactly how you want your Returns & Refunds page to look.

Managing your Returns & Refunds Page

Where to access the Returns & Refunds Page

In order to access the Returns & Refunds page you should be logged in and you should visit the My Account page. Then you should navigate to Account Summary page or Order History page by the submenu from the sidebar. Once you are on the Account Summary page or Order History page you should click on Returns an Item button from one of your recent orders and this will navigate you to the Returns & Refunds page.

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

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

🚧

Please Note

By default if you are visiting the Returns & Refunds page by appending /members/returns to your store's domain, you will see a warning message saying that you should select an ordered item from Order History page.

Where to find the Returns & Refunds Page Templates

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

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

Variables available in the Returns & Refunds page

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

Variable nameTypeDescription
$id
IntegerOrder ID
$errorArray()An array containing all error messages that can be caused by the process of the form submission.
$correctBooleanThis variable is used to determine if there is a successful form submission. It will be set to true on success.
$return_itemsArray( $return_item )A Container holding all of the return items for the order.
$return_itemArray()Contains the data for an item to return/refund.
$return_item.productArray()Contains data for the product related to the item.
$return_reasonsArray()Contains all available return reasons.
$pageTypeArrayDetermine the main area of the site you are on. Please refer to Global Template Variables article for more information.
$trackingArrayAn array of Affiliate and Traffic Tracking Codes to the Aurora Front-end.
$tracking.headerStringHeader tracking code content.
$tracking.footerStringFooter tracking code content.

Related Aurora Demo Example Templates
templates/example.com/members/returns.tpl.html