Extending My Account
In this guide, you'll learn how to extend the My Account page by creating new pages or adding new sections to the default pages.
Check if the default My Account pages meet your needs. If not, you can create a new page or add a new section to better fit your requirements. These extensions allow you to customize the My Account experience without changing the default structure.
Creating new pages
To create a new page for My Account, follow these steps:
-
Open your FastStore project using the code editor of your choice.
-
Open the
src
folder. -
Create a folder named
pages
and, within it, create another folder namedaccount
, or open it if it already exists. -
In the
src/pages/account
folder, create a.tsx
file for your new My Account page. Take the following example:
Next, you must enable this new page as a valid route:
-
Create the
myAccount
folder in thesrc
directory, or open it if it already exists. -
In the
src/myAccount
folder, create a file namednavigation.ts
. -
In the
src/myAccount/navigation.ts
file, import thegetMyAccountRoutes
function from@faststore/core
and set the new route as in the following example:
Once you finish these steps, the new page will appear as an option in the My Account menu.

Adding new sections
To add a new section to a default My Account page, follow these steps:
- Open your FastStore project using the code editor of your choice.
- Open the
src/myAccount/extensions/{pageName}
folder, wherepageName
is one of the default My Account pages. Example:src/myAccount/extensions/orders/
- In the
src/myAccount/extensions/{pageName}
folder, create two files:before.tsx
andafter.tsx
. Use thebefore.tsx
file to add a section before the existing content of the default page, and useafter.tsx
to insert a section after the existing content.
For example, to add a section after the order details page, you would implement the following:
Every default page can havebefore.tsx
andafter.tsx
extension sections. Based on the example given, the new section will be placed after the current content on the order details page:
