Services & products | CMS

Services & products

Bookable services and products, shown in Shop blocks.

{#if form?.message}{/if}
{#each items as item (item.id)} {:else} {/each}
NameTypePriceStockDurationStatus
{#if item.imageUrl} {:else}
{/if} {item.name}
{item.type === 'item_with_time' ? 'Service' : 'Product'} {item.durations.length > 1 ? `from ${money.format(item.price)}` : money.format(item.price)} {item.type === 'item' ? (item.stock ?? '∞') : '—'} {item.type === 'item_with_time' ? `${durationList(item)}${item.bufferMinutes ? ` + ${item.bufferMinutes} min get-ready` : ''}${(item.capacity ?? 1) > 1 ? ` · ${item.capacity} places` : ''}` : '—'} {item.active ? 'Active' : 'Inactive'}
No items yet — create a service or product.
{#if draft.type === 'item'}
{:else}
Lengths and prices
{#each draft.durations as row, i}
{#if Number(row.minutes) >= 5}{formatDuration(Number(row.minutes))}{/if} {#if draft.durations.length > 1} {/if}
{/each}
Customers pick a length with a slider in the shop; the price follows it.
{/if}
Image
{#if draft.imageUrl} {:else}
No image
{/if}
{#if draft.image} {/if}
{#if uploadError}{uploadError}{/if}