Add the catalog, cart and checkout pages to a portal, point the catalog at your products, and add prices in more currencies, coupons and bookable time slots.
The shop's pages show what you set in the portal's Checkout tab. This page walks through the catalog and cart part: which modules the shop uses, the three shop pages, and the extras (more currencies, coupons and time slots). The payment part is on Portal checkout and payments.
Where to find it
Sidebar → Admin → Portals → portal → Checkout for the shop setup, and the Pages tab for the shop pages.
Before you start
A module for your products, with at least a name field and a price field (a currency field is best), and optionally a picture (image address), description, SKU and category.
A module that receives orders.
The Portals permission "Create, edit and delete portals, pages, roles, domains and emails". See Permissions reference.
Steps
Open the portal's Checkout tab
The Checkout Config (JSON) box starts with a template to fill in (checkout is off in it until you set enabled to true). The Quick Start note above it names the keys to change first.
Switch checkout on and name your modules
Set "enabled": true, set catalog.sourceEntity to your products module and postCheckout.createRecord.entityName to your orders module. Under catalog, name the fields to show (nameField, priceField, imageField, descriptionField, skuField) and set currency to the shop's currency.
Click Save Checkout Settings
In the Pages tab, add a catalog page for the products module
The editor shows a Catalog Configuration Guide instead of a builder: the catalog follows the Checkout tab.
Add a cart page and a checkout page
The checkout page runs the steps listed under checkout.steps. Step types: form (fields such as name, e-mail, phone), address (billing and shipping, with "same as billing"), calendar (a date or time slot), payment, summary (order review with totals) and confirmation.
Publish the portal and place a test order
Cart options
Under cart: maxItems (most items in a cart), allowQuantityChange, showImages and additionalFields (extra fields such as a PO reference or notes). At the top level, guestCheckoutAllowed lets buyers check out without an account, and cartExpiryHours sets how long a guest's cart lasts (24 hours by default). A signed-in customer's cart is kept until it has not been used for 30 days. A cart that is in checkout is never expired. When a cart is full, the buyer sees "Cart cannot exceed … items".
Prices in more currencies
Under Price lists per currency, click Add currency, type the three-letter code (for example EUR) and the product field that holds the price in that currency (for example priceEur). Tick Visitors can choose the currency to let buyers switch. Carts are charged in the cart's currency and never converted; a product with no value in that field is not sold in that currency.
The screen warns you when a row is not right, for example "EUR is listed twice" or "Choose the EUR price field (products without a value there are not sold in EUR)".
Coupons
Keep coupons as records in a module of their own, with a code field. Under pricing, set discountEnabled to true, couponEntity to that module and couponCodeField to the code field. The cart then shows a Coupon code box. A coupon can be a percentage, a fixed amount or free shipping, with an optional maximum discount and minimum order value. Coupons that apply only to some products or to a customer group the cart cannot check, and "buy X get Y" or bundle coupons, are refused online.
Bookable time slots
Add a calendar step to the checkout. Its calendarConfig names the module that holds your availability (availabilityEntity), and can set the slot length, working hours and capacity. A slot a buyer picks is held for 15 minutes by default while they finish checkout.
Good to know
Fields you name must exist in the module; check the spelling against the module's field names in the Entity Manager.
Save often: "Invalid JSON" means a comma or quote is missing.