thankyou
The thankyou template handles the rendering of the post-purchase thank-you page shown to customers after completing an order.
Location
The thankyou template is located in the templates directory of the theme.
bash
└── theme
├── layout
├── templates
│ ...
│ ├── thankyou.json
│ ...
...Usage
Renders only after a successful checkout. Direct visits fall back to the home page. You get the order object for the completed order, and the purchase tracking script is added to the layout for you.
liquid
<h1>{{ 'order.title' | t }}</h1>
{% for variant in order.order_variants %}
<!-- line item: variant.name, variant.quantity, variant.price -->
{% endfor %}
<span>{{ order.total | money }}</span>