About this block
A receipt page for after checkout. It reads the order from the ?session_id= Stripe adds to the return link, so buyers see exactly what they paid for. Opened without an order (or after 48 hours) it shows a short note instead of a blank page.
When to use it
- As the page every Checkout button sends buyers to after they pay.
- When you want buyers to see their order on your site, not only in their email.
What's inside
- A loop over the order data (the order provider, collection session), fed by the url:session_id Stripe adds to the return link.
- Order number and date, a thank-you heading and a line about the receipt email.
- Line items with quantity and price, then subtotal, shipping, discount, tax and total.
- The shipping address, three next steps, and buttons to keep shopping or open the account page.
- An empty state for when there's no order to show.
How to customize it
- Put this block on its own page, then set data-cart-success on every checkout button (data-cart="checkout") to that page’s path, for example /order-confirmed.
- Point the buttons at your shop and account pages if they aren't /shop and /account.
- Rewrite the next steps to match how you ship.
Questions
- Why is the page empty when I open it?
- It shows an order only when the link carries a Stripe session id, which happens right after checkout. Opened directly it shows the empty state.
- How long does the order show?
- For 48 hours after checkout. After that the page shows the empty state, and the receipt email still has every detail.