Table of Contents

My favorites

The 'My favorites' page enables users to create and organize multiple lists of their favorite items, typically for future purchases. When users find an item they like on the website, they can add it to one of their favorite lists. During this process, users can choose which specific list to add the item to. Users can create these lists directly on the 'Favorites' page, or if they add an item to favorites without an existing list, a new list will be automatically generated for them.

If a favorites list is empty, users can click on it to explore products and find inspiration. Additionally, Users also have the option to delete or rename their lists.

favorites list

The backend configuration of this page offers several options, including:

  • Selecting the number of items displayed per page within each list
  • Setting the sorting order, such as sorting by name in descending order

The "My favorites" page is a built-in standard feature in Swift. However, if you are interested in the manual setup for any reason, read to the guide below.

Manual setup

The manual setup will take place in the "My account" folder, which can be found here Content > Navigation > Utilities.

Here are the step to recreate the Swift "My favorites" page:

  1. Create a new page and provide it with a appropriate name, e.g. “My favorites”
  2. Enter the Visual Editor on the newly created page
  3. Add a 2 columns 3/9 row to the empty page
  4. Add a Vertical navigation to the first empty column – Set the Navigation root to the “My account” folder

The second column is where the favorites list feature should be placed.

  1. Add a “Customer center app” item to the second column
  2. Set the title to “My favorites”
  3. Link the Orders page field to your "My orders" page
  4. Link the Account settings page field to your "My account information" page
  5. Link the Addresses page field to you "My addresses" page
  6. Link the Product list page field to your Products list
  7. Go to the App section
  8. Select the Customer experience center - favorites app
  9. Set "Retrieve list based on" to "User id"
  10. Set "Lists per page" to "12"
  11. Set "Sort by field" to "Name"
  12. Set "Sort direction" to "Descending"
  13. Select "FavoriteLists.cshtml" in List template
  14. Select "FavoriteDetail.cshtml" in the Detail template

The "My favorites" page is now finished.

To top