Where newsletter links lead: confirming a sign-up, unsubscribing and subscribing again. Surface email_subscription.
States#
The step the page is on is page.State. The editor previews each state with sample data.
State |
The page |
|---|---|
|
Confirm a double opt-in sign-up. |
|
Subscription confirmed. |
|
Already confirmed. |
|
Confirm unsubscribing. |
|
Unsubscribed, with an offer to subscribe again. |
|
Subscribed again. |
|
An invalid or expired link. |
What the code must keep#
The confirm, unsubscribe and resubscribe controls, <section class="subscription-controls" data-subscription-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 |
|---|---|---|
|
HTML |
A |
|
Text |
The brand name from the checkout appearance, or the store name when none is set. |
|
Object |
The confirm form. |
|
URL |
|
|
Text |
|
|
Text |
|
|
Text |
|
|
Text |
The subscriber's email, masked. |
|
Text |
What went wrong with the last step, in the shopper's language. Empty otherwise. |
|
Text |
The page heading. Required. |
|
Text |
|
|
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. |
|
Text |
A confirmation of what just happened, such as a code being sent. Empty otherwise. |
|
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. |
|
Object |
The subscribe again form. |
|
URL |
|
|
Text |
|
|
Text |
|
|
Text |
The consent wording, kept as the proof of consent. |
|
URL |
The storefront home page ( |
|
Text |
The step the page is on. See the states above. |
|
Object |
The unsubscribe form. |
|
URL |
|
|
Text |
|
|
Text |