Email

How Do I Replace the Order Confirmation Email Customers Get After Checkout?

The system checks your templates in order: order-confirmed → shop_order_confirmed → purchase-success, and only sends the system default if none of them exist

On this page

After a customer completes payment in your shop (cart), they receive an order confirmation email.

Which email gets sent

The system looks for an enabled email template on your site in this order, sends whichever one it finds first, and skips the system default (so customers never get two emails):

  • order-confirmed — a dedicated "Order confirmed" template. Create this one if you want it separate from your course-access email
  • shop_order_confirmed — this matches the system default's own name, so it's recognized too
  • purchase-success — the "Purchase successful" template every site starts with

Only if none of the three exist (or all three are disabled) does the system send its own default confirmation. If you've separately set up an automation rule for "Payment succeeded → send this template," that rule is already doing the sending, so the system's email won't be sent either.

Two cases where the system email gets sent instead (because key information can't be left out)

  • The order includes a digital download, but your template doesn't include {{ downloadUrl }} or {{ downloads }}
  • The order is for pickup / dine-in / delivery, but your template doesn't include {{ fulfillmentWhen }} (customers need to know when to pick it up)

Variables available in the template

{{ orderId }} order number, {{ orderDate }} order time, {{ orderItems }} what was bought (each item × quantity), {{ orderTotal }} total amount, {{ orderCurrency }} currency, {{ shippingAddress }} shipping address, {{ downloadUrl }} / {{ downloads }} download links, {{ fulfillmentLabel }} {{ fulfillmentWhen }} {{ fulfillmentAddress }} fulfillment method and time, {{ ctaUrl }} link to view the order. Have the AI call list_merge_fields to see the full list of variables.

Which time zone the order time uses

It follows the site time zone set in "Site Settings" (the same clock your admin order list uses), and includes the time zone abbreviation. If no time zone has been set, it defaults to the platform's default, Shanghai time — if your shop is in a different time zone, go change it in "Site Settings."

What the AI can do for you

  • "Help me customize the order confirmation email" → The AI calls upsert_email_template with the slug order-confirmed
  • After editing, have the AI call get_email_template to read it back and confirm, then place a test order to see the actual email you receive (list_email_logs shows which template was actually sent)
Last updated: October 1, 2026
Still stuck? Just ask

Write your question — we look in the docs first, and hand it to AI support if the answer is not there.

If you have connected an AI, you can ask it directly — it reads these same docs, and it can make the change for you.Or email us at support@dlxai.ai.
We use essential cookies; "Accept" also records device traits to prevent abuse. Cookie Policy