Remarque : même si nos guides les plus populaires ont été traduits en français, certains guides sont uniquement disponibles en anglais.

E-mails associés aux commandes

Order notification emails are the transactional notifications your customers receive about their orders and shipping information. You can customize the subject, title, and message body of each email to provide additional information and suit your business's needs.

There are three Order emails:

This guide covers editing all three order notification emails.

Tip: You can also create automated campaigns to send marketing emails to customers after they make a purchase.

Step 1 - Go to Notifications

Dans le Menu principal, cliquez sur Commerce, puis sur Notifications client.

Customer_notification.png

Step 2 - Select the email to edit

In the Customer Notifications panel, click Order Emails, then choose which email you want to edit: Order Confirmed, Order Fulfilled, or Order Refunded.

Email_options.png

Step 3 - Edit the subject line, title, and message

A new panel will open, where you can customize most of the default email content. You can edit the subject line, title, and message. This example uses the Order Confirmed email, but the process is identical for Order Fulfilled and Order Refunded emails. Edits you make to this email notification apply to all product types.

You can use these variables:

  • %o - Displays order number.
  • %s - Displays your site title.

As you make changes, a preview of a live email populates to the right.

  • Subject Line - You can customize the default subject line. For example, the default subject line for the Order Confirmed email is "%s: New Order Confirmed #%o". Look at the example below the field to see how these variables are translated for your site.
  • Title - Use a combination of custom text and the variables below to customize the main header of the email.
  • Message - Use text, HTML, and JSON variables to customize the body of the email. For example, you can include information about how you ship orders, your refund policy, or anything else customers should know.

You can create a custom header and footer for all Order emails in the Header and Footer panel. You can edit your business address in Business Information settings.

Note: We recommend having coding knowledge before customizing order emails with HTML and JSON. While we can help with the steps in this guide, we can't provide assistance for advanced code modifications using HTML or JSON. If you need more help, we recommend exploring the Squarespace Forum, or our list of resources to help with custom code.

Use JSON variables in the email content

When customizing these emails, usually regular text will suffice. There are also variables included in the default email content that you can use. These automatically populate information about your store and the specifics of the order.

In the Subject Line and Title fields, you can use these variables:

  • %o - The order number.
  • %s - The title of your site.

Dans le champ Message, vous pouvez utiliser ces variables en les plaçant à l’intérieur des accolades, par exemple {order.displayId} :

customer.name Le nom complet (prénom + nom) du client
giftCard.giftCardCodeLast4 The last 4 digits of the gift card code.
giftCard.recipientEmail The gift card recipient's email address.
hasPhysicalProduct La section apparaîtra si la commande contient au moins un produit physique
hasDigitalProduct La section apparaîtra si la commande contient au moins un produit numérique
hasServiceProduct La section apparaîtra si la commande contient au moins un produit de type service
hasGiftCardProduct La section apparaîtra si la commande contient au moins une carte-cadeau
order.displayId Le « N° de commande » à cinq chiffres, par ex. n° 00005
order.refundTotalFormatted The refund amount.
order.submittedOn La date et l’heure auxquelles la commande a été envoyée. Cette variable doit être exécutée par une fonction formateur, date pour être exprimée correctement dans l’e-mail, c’est pourquoi le template par défaut indique : {order.submittedOn|date %B %e, %Y %I:%M%p %Z}
order.url

Show the order number with a link to the customer's account.

Remarque : activez les comptes clients avant d’utiliser cette variable.
website.siteTitle Your site title
%B Nom du mois en entier
%e Jour du mois
%Y L’année en entier

%I

L’heure de la journée, au format 12 heures

%M

La minute

%p

« AM » ou « PM »

%Z

Nom du fuseau horaire

When you're finished making changes, click Save.

Note: Order emails always include the billing and shipping information customers enter at checkout. Order Confirmed emails for digital and service products don't include shipping details.

Send a test email

To see how an email appears in your inbox, you can send yourself a test email by clicking Send Test Email To youremail@email.com.

Note: Test emails include order details for a typical physical product order, even if you only sell digital or service products. Details include a placeholder tracking number and a shipping address, which aren't in real emails for digital or service products. To preview emails sent to customers for digital or service product orders, run a test order.

Subscriber settings

By default, subscribers receive the Order Confirmed email once, after the first subscription purchase. To send the email for every subscription renewal, check the box beneath Order confirmations for subscribers, then click Save.

Restore to defaults

To reset the changes you've made, scroll down to the panel and click Restore Defaults. Use caution, as this process can't be reversed.

Cet article vous a-t-il été utile ?
Utilisateurs qui ont trouvé cela utile : 25 sur 137
E-mails associés aux commandes