Give your subscribers a My Orders page and they can look up any order they've paid for with you: its date, order number, status and total, and its receipt, without writing to you to ask. The page lives at /customer/orders on your store's address. Many themes already have it but don't link to it, and some don't have it yet, so start by checking yours.
What your subscribers see
Before: nothing in your menu leads to your subscribers' past orders.
After: My Orders sits in your menu…
…and opens the list of every order they've paid for, with your store's own header and footer around it.
Check your store
- Sign in to your storefront as a customer, for example with the account you used for a test order.
- Go to your store's address followed by /customer/orders (for example, yourstore.com/customer/orders).
- If you see My Orders and a table of orders, your theme has the page, so go straight to Link to it. If you don't, add the page first.
Add the page
Which version you add depends on your theme, and the html folder tells you which you have.
- Open Design and click Code on your theme.
- Look in the html folder for a customer folder.
If there's a customer folder (an older theme):
- Open customer, click Add New, type orders.html, then click outside the name box (the Save button stays grey until you do) and click Save.
- Paste this into the new file and click Save:
{% extends 'base.html' %}
{% block page_content %}
<div class="container orders-list">
{{ customer_helper.orders_list_page() }}
</div>
{% endblock %}
If there's no customer folder (a current Designer theme):
- Click Add New under html, type customer, tick Create directory? and save.
- Open the new customer folder, click Add New, type orders.html, then click outside the name box (the Save button stays grey until you do) and click Save.
- Paste this into the new file and click Save:
{% extends 'base.html' %}
{% block page_content %}
{% import 'components_helpers.html' as components_helpers with context %}
{% for component in components_list('customer/account') if component.label == 'Header' %}{% include component.base_path~'/component.html' ignore missing with context %}{% endfor %}
<div class="container orders-list">
{{ customer_helper.orders_list_page() }}
</div>
{% for component in components_list('customer/account') if component.label == 'Footer' %}{% include component.base_path~'/component.html' ignore missing with context %}{% endfor %}
{% endblock %}
This version draws your store's own header and footer around the list, so shoppers can get back to the rest of your store.
If someone built your theme for you, ask them to add the page; neither version is made for a custom-built theme.
Changes in Code show on your store right away. If you'd like to see the page before your subscribers do, make the change on a copy of your theme first.
Link to it
On a current Designer theme (the one with no customer folder before you made it):
- Open Design and open the Designer for your theme. Header is the first item in your page's content list; open it and go to its Links section, as in Editing Header and Footer Links.
- Click Add a Link. A link called New Item appears; click it to open it.
- Set Link name to My Orders. In Links to, choose Custom… (last in the list) and type /customer/orders in the box.
- Click Save. My Orders now shows in your store's header.
On an older theme (the one that already had a customer folder):
- In Code, open html/base.html and find your menu links (Subscribe, Shop, About Us).
- Add this line beside them and click Save:
<li><a href="/customer/orders">My Orders</a></li>
My Orders now shows in your store's menu.
If your shop is on another site and your subscribers manage their subscription on your Cratejoy pages, you can also add a My Orders link to your own site's menu, pointing to your Cratejoy store's address followed by /customer/orders (for example, yourstore.cratejoy.com/customer/orders).
A shopper who isn't signed in is asked to sign in first, and lands on their account page; from there, My Orders in the menu takes them to the list.
Good to know
- The page shows paid, partly refunded and refunded orders, subscription renewals included.