Besides the theme, a store has pages the platform renders and the merchant designs: the payment status page, order confirmation, order status, the Delivery, Returned parcel and Undelivered parcel portals, the Returns portal, the Review invitation, the Privacy page and the Email subscription page. The checkout itself is platform-owned; only its appearance and text change.
Each page is edited in Store Admin under Online Store › Checkout: its appearance (logo, colours, font, corners, background image) and, with Edit Vascula, its code. A change is saved as a draft and previewed with sample data in each of the page's states; nothing reaches shoppers until it is published. Reset puts one page back to the platform default without touching the others.
A page's code is a whole HTML document written in Vascula, the template language of themes. It reads one root: page (checkout on the payment status page). Unlike a theme section it declares no ctx_needs, and it cannot read ctx, the cart, the shopper's account or anything else. The values each page can read are listed on its page below: [] marks a list item, read inside {% for %}. A value a page doesn't have prints nothing.
Every word the default pages show is a storefront message the merchant can change per language under Customize checkout text or Online Store › Storefront Messages, and reaches the page already in the shopper's language. Write your own words directly in the code to use the same text in every language.
The pages#
Page |
Surface |
What it is |
|---|---|---|
|
The page a shopper sees back from the payment provider, at the checkout return. It reads the checkout's own data as |
|
|
The page right after paying. Order confirmation and Order status share one default and each can have its own code. |
|
|
The page customers open to check an order: payment, fulfillment, shipments and tracking, with the actions they can take. It reads the same values as Order confirmation, with shipments filled in. |
|
|
At /delivery: answering a failed delivery attempt. The three portals share one default and read the same values; |
|
|
At /returned-shipment: choosing what happens to a parcel on its way back or already back. The three portals share one default and read the same values; |
|
|
At /undelivered: choosing what happens to a parcel lost or damaged on its way. The three portals share one default and read the same values; |
|
|
At /returns: finding an order, asking to return or exchange delivered items, and following the returns already on it. |
|
|
The page invited customers open to choose which purchased product to review, and review it. |
|
|
Where shoppers ask for a copy of their data or its deletion, confirm the request from their email, and follow it. |
|
|
Where newsletter links lead: confirming a sign-up, unsubscribing and subscribing again. |
What the code can't change#
Rule |
Details |
|---|---|
Platform-owned controls |
Each page has one section that does the page's work: the payment status card, the order lookup and answer forms, the return request, the review choices, the privacy and subscription forms. Keep it exactly as the default has it; move, style and word everything around it. |
Required bindings |
Each page keeps the bindings its reference lists, such as |
Scripts |
The default's |
Frames, forms and links |
|
Size |
A page's code is at most 128 KiB. |