Skip to content
Products
<sessions-products>

Lists the storefront products for a business as a price board, the same one its Sessions page shows: intro offers first under Start here, then class packs, memberships (a table of allowance by commitment when the plans come that way), gift cards and physical goods, each section headed on one of the business’s own photos when it has one per section. Every row is a button: picking one opens the product’s sheet right inside this element (its card, price, what it includes and its description), and its Buy button — or the Buy beside the row — opens the checkout over it (an optional guest name and email, the inline Stripe card form, and the purchase), so you need nothing beyond this one tag to sell. Sold-out items stay listed but aren’t purchasable. Filter the catalogue to a single kind with the type attribute, and supply an auth token (directly or via a wrapping <sessions-context>) to buy on behalf of a signed-in visitor and save their card. A signed-out visitor can buy a gift card or physical good as a guest where the business allows it; a pass or membership (or anything, with guest checkout off) asks the visitor to sign in when they press Buy, before the checkout opens.

Install

<script type="module" src="https://assets.sessions.website/embeds/unstable/products.js"></script>
<sessions-products
  business="still-water-yoga-demo"
></sessions-products>

Attributes

Edit any attribute below — the snippet above and the live preview to the side rebuild in place.

business : string

Handle of the business whose products should be listed. Optional when a wrapping <sessions-context business="…"> already provides it.

auth : token

Optional embed-scoped JWT. When omitted, the embed behaves like an anonymous shopper.

type : pass | membership | giftCard | physicalProduct

When set, restricts the catalogue to a single product kind. Values match the GraphQL __typename exactly.

media : none

Set to none for a text-only board: no photos behind the section headings and no product thumbnails. Use it when your page already has imagery around the catalogue.

heading-style : display

Set to display to head each section in heavy, condensed uppercase over a thick rule in your accent colour, for a page whose own headings look that way. Omitted, each section has a plain sub-heading in your heading font.

Content Security Policy

If your site sets a Content-Security-Policy, allow these origins: the embed loads its files from assets.sessions.website, calls the Sessions API on go.sessions.website, and frames sign-in and maps from embed.sessions.website. Buying a product also opens a checkout sheet with a card-payment form and (for guest checkout) a Cloudflare bot-challenge widget. Allow Cloudflare’s origin too, or they will be blocked.

script-src https://assets.sessions.website https://challenges.cloudflare.com;
connect-src https://assets.sessions.website https://go.sessions.website;
frame-src https://embed.sessions.website https://challenges.cloudflare.com;