Ad

Creating Additional Account Pages

- 1 answer

I'm attempting to customise the customer account page by adding an Orders page which can be linked from the main account page. This will link from the button below:

https://i.stack.imgur.com/VvPAD.png

This button is on the /account page.

I've tried to make an additional template named orders.liquid, but when I go to /account/orders, I am redirected back to /account page

https://i.imgur.com/NXRVfVv.png

How can I simply create an extra page with the URL /orders to link from the account page? I feel like I'm missing something quite big here (admittedly my knowledge isn't very good).

Ad

Answer

You should create a new account template instead, since order.liquid is not a valid template.

Example: account.orders.liquid

And link to it using /account?view=orders

This way you will still be in the account page, but you will use a different template that you can modify the way you like.

Ad
source: stackoverflow.com
Ad