Store pages

The pages besides the theme that merchants design with Vascula, and the rules for their code.

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

Payment status

payment_status

The page a shopper sees back from the payment provider, at the checkout return. It reads the checkout's own data as checkout.

Order confirmation

confirmation

The page right after paying. Order confirmation and Order status share one default and each can have its own code.

Order status

status

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.

Delivery portal

delivery

At /delivery: answering a failed delivery attempt. The three portals share one default and read the same values; page.Kind says which one renders.

Returned parcel portal

delivery_returned

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; page.Kind says which one renders.

Undelivered parcel portal

delivery_undelivered

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; page.Kind says which one renders.

Returns portal

returns

At /returns: finding an order, asking to return or exchange delivered items, and following the returns already on it.

Review invitation

review_invitation

The page invited customers open to choose which purchased product to review, and review it.

Privacy page

privacy_request

Where shoppers ask for a copy of their data or its deletion, confirm the request from their email, and follow it.

Email subscription

email_subscription

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 {{ page.BrandingStyles }} and {{ page.PreviewNotice }}, and the document's </head> and </body>.

Scripts

The default's <script> blocks stay exactly as they are; no other script can be added. Inline event handlers (onclick= and the like) and srcdoc are refused.

Frames, forms and links

<iframe>, <frame>, <object>, <embed>, <base>, <meta>, <link> and <form> are platform-owned: keep the default's own and add none. javascript: and vbscript: links and data: URLs other than images are refused.

Size

A page's code is at most 128 KiB.