> ## Documentation Index
> Fetch the complete documentation index at: https://docs.revize.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Order Confirmation Email

> Edit the 'View my order' button in Shopify notification emails to say 'View or Edit your order' and add a message about the editing window.

<Info>
  This is a one-time change in Shopify Admin. It takes about 2 minutes and helps customers discover that they can edit their order.
</Info>

## Why do this

Shopify's default order confirmation email has a **"View your order"** button. Customers click it but don't know they can actually *edit* the order. A simple text change fixes that — and a small message below the button tells them exactly how long they have.

**Before:** "View your order"
**After:** "View or Edit your order" + a line saying how long they have to make changes.

***

## What you'll change

<CardGroup cols={2}>
  <Card title="Button text" icon="pen" color="#6366f1">
    Change "View your order" to **"View or Edit your order"**
  </Card>

  <Card title="Edit window message" icon="clock" color="#0ea5e9">
    Add a line below the button: **"You have 60 minutes to edit your order."**
  </Card>
</CardGroup>

<Note>
  The button still links to `{{ order_status_url }}` — the same order status page where the Revize editing portal is visible. Nothing changes about how the link works.
</Note>

***

## Step-by-step setup

### Step 1: Open the notification template

<Steps>
  <Step title="Go to Shopify Admin">
    Open your Shopify Admin and click **Settings** in the bottom-left corner.
  </Step>

  <Step title="Open Notifications">
    Click **Notifications** in the settings menu.
  </Step>

  <Step title="Select the email template">
    Click **Order confirmation** (this is the most common one to edit). You can repeat this for any notification that has a "View your order" button — like **Shipping confirmation** or **Shipping update**.
  </Step>

  <Step title="Open the code editor">
    Click **Edit code** in the top-right corner of the email editor. Shopify will open the HTML/Liquid template.
  </Step>
</Steps>

***

### Step 2: Find the button

Use **Ctrl + F** (Windows) or **Cmd + F** (Mac) to search for:

```
View your order
```

You'll find it inside a button element that looks something like this:

```liquid theme={null}
<a href="{{ order_status_url }}">View your order</a>
```

The exact HTML around it varies by theme, but the text and URL are always the same.

***

### Step 3: Change the button text

Replace the button text with:

```liquid theme={null}
<a href="{{ order_status_url }}">View or Edit your order</a>
```

That's it — the link stays the same, only the label changes.

***

### Step 4: Add the edit window message

Directly **below** the button code, add this line:

```html theme={null}
<p style="font-size: 14px; color: #666666; margin-top: 10px; text-align: center;">
  You have 60 minutes to edit your order after checkout.
</p>
```

<Tip>
  Replace **60 minutes** with whatever your actual [edit window](/setup/edit-window) is set to. If your edit window is 30 minutes, write "30 minutes." If it's 2 hours, write "2 hours."
</Tip>

***

### Step 5: Preview and save

<Steps>
  <Step title="Preview the email">
    Click **Preview** to see how the updated email looks. Confirm the button text reads "View or Edit your order" and the message appears below it.
  </Step>

  <Step title="Send a test email (optional)">
    Click **Send test email** to see exactly what customers will receive in their inbox.
  </Step>

  <Step title="Save">
    Click **Save** to apply the changes. All future order confirmation emails will use the new button text and message.
  </Step>
</Steps>

***

## Example result

Here's what the customer sees in their inbox after the change:

<Tabs>
  <Tab title="Before">
    ```
    Thank you for your order!

    [ View your order ]
    ```
  </Tab>

  <Tab title="After">
    ```
    Thank you for your order!

    [ View or Edit your order ]
    You have 60 minutes to edit your order after checkout.
    ```
  </Tab>
</Tabs>

The button links to the order status page where the Revize editing portal is live. Customers see their order summary and all available editing options.

***

## Troubleshooting

<AccordionGroup>
  <Accordion title="I can't find 'View your order' in the template" icon="circle-exclamation">
    Some themes use slightly different wording like "View my order" or "View order details." Try searching for `order_status_url` instead — that's the URL variable Shopify uses, and the button text will be right next to it.
  </Accordion>

  <Accordion title="The message doesn't appear below the button" icon="circle-exclamation">
    Make sure you pasted the `<p>` tag **after** the closing `</a>` tag of the button, not inside it. If the button is wrapped in a table cell (`<td>`), place the message inside the same cell but after the button link.
  </Accordion>

  <Accordion title="Can I style the message differently?" icon="paintbrush">
    Yes — it's standard HTML. Change the `font-size`, `color`, or `margin-top` values to match your brand. You can also make it bold with `<strong>` or change the alignment.
  </Accordion>

  <Accordion title="Will this affect other notification emails?" icon="circle-question">
    No. Each notification template is independent. Changes to the order confirmation template won't affect shipping confirmations or any other email. You'll need to update each one separately.
  </Accordion>
</AccordionGroup>

***

<Check>
  **Done.** Customers will now see "View or Edit your order" in their order confirmation email, with a clear message about how long they have to make changes.
</Check>
