Currently on Dawn 10 and working on our account section.
The current templates/pages in the classic account section are as follows:
Customer Account
Customer Activate Account
Customer Addresses
Customer Login
Customer Order
Customer Register
Customer Reset Password
Is it possible to set up a new page within the account section?
For example, if we wanted a page to book a meeting with a member of our team or request samples.
Either would sit well within the account section, but I wouldn’t want to put them on the main account page and slow page load with them for customers that just wanted to look at their order status etc.
It would be easy to set up a new template and section, but how would the routing/creating the actual page/url work?
Asked Shopify support and they said it was possible but that they couldn’t find any documentation for it to point me to, so I should ask on here (haha).
I think a work around would be to set up a normal page and use liquid to not show content to people who aren’t logged in, or just suck it up and put it on the main account page, but I think having it as a separate account page would be a lot cleaner, so just wanted to double check with you all before settling
This is an interesting use-case! Currently Shopify doesn’t support adding new pages to the customer’s account section directly - as in creating a new custom page that isn’t one of the customer pages you listed above. The customer account area is restricted to the predefined pages you have mentioned.
However, as you suggested, you can create a workaround by creating a normal page and use Liquid to restrict content to logged-in customers only. Here’s a simple example of what that would look like:
{% if customer %}
<!-- Content for logged-in customers -->
{% else %}
<!-- Message for visitors who are not logged-in -->
{% endif %}
Then that custom page could be linked from any of the customer pages (eg on the Customer Account page) so customers could easily navigate to the book a meeting/ request a sample page, and you could have a return link on the custom page that brings the customer back to their account page.
Your other option is to modify the existing account page to include the new features. However, like you mentioned, this could result in slower page load times. Is the book a meeting/request a sample componant very resource heavy? Maybe it could be worth looking into having it as a separate section and then lazy loading it to prevent it slowing down the page load, or optimising it in other ways so the page remains fast?
Remember, any changes to the account section should be thoroughly tested to ensure a smooth user experience.