Docs / Commerce

Storefront and checkout

A Studio site sells through storefront blocks you place on ordinary pages in the page editor. The shop page, the product page, the basket, the checkout and the order page are Studio pages: their wording is inline-editable and translated like any other text, and the engine supplies the prices, stock and rules.

A conference site's ticket page with categories, prices including VAT and Add to basket buttons
The ticket selector on the conference template: tickets and merchandise share one basket.

The blocks

BlockShows
Product gridProducts of the store, filtered by category, with a quick add for single-variant products and a “few left” badge
Product detailOne product: gallery, option picker, price, quantity, Add to basket
Ticket selectorThe ticket categories of an event; for a recurring event the buyer picks a date first (list or month calendar)
Event listUpcoming events with their next dates, price from and sold-out state
BasketTickets and goods together, the hold timer, Continue and Checkout
CheckoutThe checkout, built from step blocks: Contact, Delivery, Consents, Payment, Notes
Order statusThe order after checkout, live: payment, tickets, collection code
Newsletter sign-upA subscription form with double opt-in (see Mailing lists)

B2B portals add Enquiry, My quotes, My orders and My invoices; see B2B portal.

A product page with picture, price, item number, quantity and Add to basket
The product detail block: the price and item number come from the store's offering.

Build the shop

  1. Open the site’s story in Stories and add a page (for example Shop).
  2. Insert a Product grid block and choose its source and columns. Add a Product detail block on the product page.
  3. Add a Basket page with the Basket block and a Checkout page with the Checkout block. Arrange its steps; remove the ones you do not need.
  4. Edit the headings, button labels and messages in place, then translate them in translation mode.
  5. Publish.

What the author decides, and what the engine decides

You choose the wording, the order of the steps and the look. The engine decides everything that involves money or consent, and a page cannot override it:

  • prices, totals, VAT, currency formatting and stock;
  • which payment methods are offered (the store’s enabled methods);
  • the consents the store requires;
  • the steps the engine needs: a step you removed but the order requires (contact, or delivery for goods) is added back;
  • quantity limits (a block may only lower them) and whether a guest may check out.

The order request is idempotent: a double click or a retried submit creates one order.

One basket for tickets and goods

A ticket and a hoodie check out together, in one order with one payment. Each ticket line can carry its holder’s name; goods lines carry the delivery choice (shipping with a quoted cost, or pickup with a collection code). Seats in the basket are held for a limited time and freed by themselves if the buyer leaves.

Customer note

The Notes step lets the buyer add a short note (plain text, up to 1000 characters). It appears on the order in Studio.

Tips

  • The editor preview of a storefront page shows sample data from the store, so you can design the basket without buying anything.
  • A store with no delivery method has no delivery step: tickets and services check out without one.
  • Developers who want their own markup keep the same data and form protocol; see Commerce storefronts in Luat.

Pilot documentation. Studio is in a partner pilot. Screens and YAML shown here are current as of the version noted on each page; tell your Maravilla contact when something does not match what you see.