Custom HTML and Script Module
Add your own HTML and JavaScript as a storefront module, configured in the designer and placed via the theme editor.
What's New
A new Custom module in the Design section. Write HTML, add a script, save—and drop it onto any page as a theme app block. It gets the same customer context as Toki's built-in modules, so you can build your own loyalty widgets.
Available Context
- Customer identity, balance, and tier
- Member number (see Member Numbers, August)
- Segment membership
- Standard Toki JavaScript API for actions
Also Shipped
- Expandable textarea with a modal editor for long HTML and scripts
- Custom HTML block in the wallet now exposes more customer variables
Use Cases
- A branded banner with the customer's points that matches your theme exactly
- A countdown to the next tier
- A completely custom layout for a campaign landing page
Why It Matters
Toki's blocks cover the common cases. This one covers yours.