Commerce components
Product card, price, quantity stepper, option select, total, cart badge.

On the product screen, set Quantity behavior to Select quantity only, name to productQty, minimum to 1, and maximum up to 100. Bind the row title and price to {{selected.title}} and {{selected.price}}. The buttons change the selection. They do not write to the cart. Opening a different product starts at the minimum.
Set Total to Price × quantity, price to {{selected.price}}, and quantity to {{productQty}}. Label it Product subtotal. Give Add to cart one Add record action: table cart, values title: {{selected.title}}, price: {{selected.price}}, any other product fields, and Number of units {{productQty}}. The table must allow Everyone writes their own, with One row per visitor off. One click adds the selected units; another click adds the same amount again. The button is disabled while saving. If only some units are saved, the app shows how many; check the cart before retrying. On the cart screen, keep Total in List total mode, list cart, field price. Save the settings and publish the project.
To keep a Quantity cart after closing the app, set List to a table key such as cart. Enable Everyone writes their own and turn off One row per visitor for that table. Plus saves one title and price row per unit; minus removes one of the visitor’s rows for that product. Six equal products are six rows, and Total adds their prices. Reopening restores the quantity from the table. A connected bot and a recognized visitor are required. Without a matching table, the block uses an in-memory list until the app closes.
For Quantity and Total, Appearance → Text color sets the label, hint and value color. Quantity also uses it for the minus sign. Choose one color for both themes or separate light and dark colors. Without a custom color, the block uses the project theme colors.
- Product card — image, title, price, button. Inside a repeater each tile shows its own product.
- Price — an amount with a currency and, optionally, a struck-through old price.
- Quantity — minus / number / plus. It accumulates into a list: row title, unit price, lower and upper bounds.
- Option select — size, colour, portion. Rendered as pills or colour swatches (the colour follows a colon).
- Total — the sum over a list: which list to add up and which field in it.
- Cart badge — the number over an icon. A bottom-menu item does the same with its count badge.
