At /returns: finding an order, asking to return or exchange delivered items, and following the returns already on it. Surface returns.
States#
The step the page is on is page.State. The editor previews each state with sample data.
State |
The page |
|---|---|
|
Find an order by its number and email or phone. |
|
Enter the one-time code sent to the email or phone. |
|
A signed-in customer's orders. |
|
The order: returns so far and the return request form. |
What the code must keep#
The lookup, code, orders and return request controls, <section class="returns-controls" data-returns-controls>. Keep it exactly as the default has it.
Keep {{ page.BrandingStyles }}, {{ page.PreviewNotice }} and {{ page.Heading }}, and the document's </head> and </body>. See the rules for all store pages.
Values#
Every value the page's code can read. [] marks a list item: read it inside {% for item in list %} as item.Name. A value that is empty in a particular case prints nothing; test it with {% if %} first.
Value |
Type |
Description |
|---|---|---|
|
Text |
The label of the link to find another order. |
|
URL |
Opens the order lookup again, to find another order. |
|
HTML |
A |
|
Text |
The brand name from the checkout appearance, or the store name when none is set. |
|
Object |
The one-time code form ( |
|
URL |
Where the form posts. |
|
Text |
Label of the code field. |
|
Text |
The email or phone number the code was sent to. |
|
Text |
The form's security token. |
|
Text |
The order number being verified. |
|
Text |
Label of the button. |
|
Text |
|
|
Text |
What went wrong with the last step, in the shopper's language. Empty otherwise. |
|
Text |
The page heading. Required. |
|
Text |
The text under the heading. Empty when the current step has none. |
|
Text |
The shopper's language as a locale code, such as |
|
URL |
The checkout appearance logo. Empty when the store has no logo. |
|
Object |
The order lookup form ( |
|
URL |
Where the form posts. |
|
Text |
The email or phone number the shopper entered. |
|
Text |
Label of the email or phone field. |
|
Text |
The form's security token. |
|
Text |
Label of the order number field. |
|
Text |
The order number the shopper entered. |
|
Text |
Label of the button. |
|
Text |
A confirmation of what just happened, such as a code being sent. Empty otherwise. |
|
Object |
The order found ( |
|
URL |
Where the return request posts. |
|
Text |
Why returns are closed, worded. Empty while open. |
|
Text |
The form's security token. |
|
Text |
A note about exchanges, when any line offers one. |
|
List |
Returns already on the order, newest first. |
|
List |
Where to send the items, one line each, when the customer ships them. |
|
List |
The items. |
|
Text |
The variant, or the exchange asked for. |
|
URL |
|
|
Number |
|
|
Text |
|
|
Text |
When the label stops working, worded. |
|
URL |
The return label to print. |
|
Text |
What the customer does next, worded. |
|
Text |
Why the return was declined, worded. |
|
Text |
The return number. |
|
URL |
A QR code to show instead of a printed label. |
|
Text |
The status, worded. |
|
Text |
|
|
Text |
The return carrier and tracking number. |
|
URL |
|
|
Text |
|
|
Text |
How the items come back, worded. |
|
Text |
|
|
Text |
|
|
Text |
The order, worded with its number. |
|
Text |
|
|
List |
The items the customer can return now. |
|
List |
Variants the line can be exchanged for. |
|
Text |
|
|
Text |
|
|
Text |
The order line. |
|
URL |
|
|
List |
The quantities that can be returned, 1 up to the most. |
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
Number |
Most characters in the note. |
|
Text |
Shown when nothing can be returned. |
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
List |
The return reasons. |
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
List |
Where a refund can go. |
|
Boolean |
|
|
Text |
|
|
Text |
|
|
Text |
The one refund method, when there is only one. |
|
Text |
|
|
URL |
The order status page. |
|
Text |
|
|
Text |
|
|
Text |
Until when items can be returned, worded. Empty when closed. |
|
Object |
A signed-in customer's orders ( |
|
Text |
Shown when the customer has no order this page can help with. |
|
Text |
Heading of the order list. |
|
List |
The orders. |
|
Text |
The order date, in the shopper's language. |
|
Text |
The order, worded with its number. |
|
URL |
Opens the order on this page. |
|
Text |
Label of the link that opens an order. |
|
Object |
The brand half of the page. |
|
Text |
A |
|
URL |
The order status page's background image, when the store set one. Empty otherwise. |
|
List |
The store's checkout footer policies, as links. |
|
Text |
The policy title. |
|
URL |
The policy page. |
|
Text |
Inline CSS custom properties for the brand half: |
|
HTML |
A |
|
Text |
In the editor preview, a notice that the page shows sample data. Empty on the storefront. Required. |
|
URL |
The storefront home page ( |
|
Text |
The step the page is on. See the states above. |
|
List |
The steps of a return, worded, shown on the lookup. |