When it's sent
Sent when a shopper asks for a code to sign in or create an account, on the storefront, at checkout or when saving their details after an order. The code works for 5 minutes; an address gets at most 5 codes an hour. Not sent if that sign-in method is off, the account is disabled, or the address is new and account creation is off.
At a glance
Category: Authentication. Codes the customer asks for to sign in, to confirm their phone number or email address, or to view an order on the Track order page.
Channels: Email, SMS, WhatsApp
Can be switched off: No, it is always sent
What it also needs
Email needs the customer's email address. A text needs the customer's phone number and a ready SMS or WhatsApp provider. Always sent; it can't be switched off.
Related settings
Phone sign-in
Transactional messages
Message templates
Transactional emails
Service providers
Values it can read
Its template can print these values. Write a value's path between double braces, such as {{ shop.name }}. [] marks one entry of a list, read inside a loop: order.items[].title is item.title in {% for item in order.items %}. A value the event has no data for prints nothing.
SMS and WhatsApp texts read the same values, except the email values.
Access code#
Value |
Path |
|---|---|
Code |
|
Code valid for (minutes) |
|
Store#
Value |
Path |
|---|---|
Store name |
|
Store link |
|
Store logo |
|
Support email |
|
Store address |
|
Store address › First name |
|
Store address › Last name |
|
Store address › Company name |
|
Store address › Address line 1 |
|
Store address › Address line 2 |
|
Store address › District |
|
Store address › City |
|
Store address › State or region code |
|
Store address › State or region |
|
Store address › Postal code |
|
Store address › Country code |
|
Store address › Country |
|
Store address › Phone number |
|
Store address › Full address |
|
Social links |
|
Social links › Network |
|
Social links › Profile link |
|
This email (emails only)#
Value |
Path |
|---|---|
Preview text |
|
Email parts it can use
Its email code can add these parts of the email library with {% render %}. An email offers only the parts it has data for.
{% render 'access_code' %}: The one-time code of a sign-in or confirmation email, large and easy to copy, with how long it is valid.{% render 'button' %}: A button in your accent colour that works in every email program.{% render 'eyebrow' %}: A small line in capitals above a heading, such as the order number and date.{% render 'footer' %}: The store's name and its support address.{% render 'header' %}: The store's logo (from Email design), or its name when there is no logo, linking to the store.