Guides
Hyvä themes and Hyvä Checkout
No editing needed. The module renders Hyvä-compatible HTML by itself. No compatibility module to install, no Tailwind rebuilds to do and no theme files to edit.
On this page
The Ottla module works with Hyvä versions 1.3 up to and including 1.5, and Hyvä Checkout. It also works with Hyvä CSP: the module includes the CSP entries it needs (see Content Security Policy below). Nothing here needs a Hyvä compatibility module.
That is because every Ottla feature has a single implementation for every theme: server-rendered HTML, plain scripts and the module’s own stylesheets. There is no Alpine, jQuery, RequireJS or Tailwind dependency, so there is nothing to rebuild and no theme file to edit. A store without Hyvä installed is just as safe.
What happens on Hyvä
| Area | What happens |
|---|---|
| Theme detection | The module asks Hyvä’s own theme registry which theme is active, child themes included. A Luma theme on the same installation keeps Luma markup. |
| Recommendation rows | Use Hyvä’s own product slider and product cards, so rows look like the rest of your store. |
| Inline scripts | The few small inline scripts are registered with Hyvä’s CSP helper and use no Alpine expressions. Under a strict policy, in-place listing updates fall back to ordinary page loads. |
| Hyvä Checkout | Nothing is added to the checkout or the order confirmation page unless a placement targets it. After an Ottla add to basket on a checkout page, the page reloads so the order summary matches. |
| Hyvä CMS live preview | The assistant, instant search and home-page rows are left out of the editor preview, so editors see their own content. |
| Request a quote (Adobe Commerce B2B) | Needs a Hyvä B2B compatibility module. Without one, leave “Request a quote” switched off. |
Search box and listings
Instant search attaches to the header search input #search, which both Luma and Hyvä use. If your theme gives its search box a different id, point the module at yours and flush the cache:
bin/magento config:set ottla/search/instant_search_input_selector "#header-search-input"
bin/magento cache:flush
If you use Ottla on your search results and category pages, the Filter, sort and page changes setting decides how your listing updates after page 1. Updating in place, without reloading the page, requires a Hyvä theme that is not running in strict CSP mode. Under strict CSP, keep the default setting: whole-page loads. Either way, shoppers see the same results, and the first page always arrives as complete HTML from the server.
Match your theme with CSS custom properties
The blocks the module renders in your pages pick up your theme on their own: unset, each property falls back to Hyvä’s tokens such as --color-primary and --color-gray-*, then to Luma-like values. To fine-tune them, set any of these on :root or on an ancestor element in your theme’s CSS. Your values always win.
| Property | Used for | Falls back to |
|---|---|---|
--ottla-accent |
Links, prices, selected states and primary buttons | The theme’s own value, then --color-primary, then the theme’s primary button colour |
--ottla-accent-contrast |
Text on accent backgrounds | The primary button’s text colour if it is readable, else white or near-black |
--ottla-accent-text |
The accent used as text | The accent, darkened until it is readable on --ottla-bg |
--ottla-text |
Main text | var(--color-gray-900, #333) |
--ottla-muted |
Headings, hints and secondary text | var(--color-gray-500, #666) |
--ottla-border |
Borders | var(--color-gray-200, #ddd) |
--ottla-bg |
Panel background | #fff |
--ottla-hover-bg |
Highlighted rows and chips | var(--color-gray-100, #f5f5f5) |
--ottla-radius |
Corner radius | The theme’s --radius-md where it is set, else 6px |
--ottla-font-size |
Base text size of the search dropdown and blocks | 14px |
--ottla-card-bg |
“Buy it again” card background | var(--color-primary-light, #f5f5f5) |
| Properties | Used for | Defaults |
|---|---|---|
--ottla-badge-bg, --ottla-badge-text |
Badges | #eef2f6, #1f2a37 |
--ottla-badge-sale-bg, --ottla-badge-sale-text |
“On sale” badge | #fde8e8, #9b1c1c |
--ottla-badge-offer-bg, --ottla-badge-offer-text |
Offer badge | #fdf6b2, #723b13 |
--ottla-progress-bg, --ottla-progress-fill |
Free-delivery progress bar | #e5e7eb, the accent |
Give sizes in px. Luma sets html { font-size: 62.5% } while Hyvä keeps 16px, so rem values would come out differently on each theme.
<!-- Or put the :root rule in your theme's own stylesheet -->
<style>
:root {
--ottla-accent: #2f4a3a;
--ottla-accent-contrast: #ffffff;
--ottla-radius: 4px;
--ottla-font-size: 15px;
}
</style>
Content Security Policy
The module ships its own CSP entries in etc/csp_whitelist.xml, covering scripts, connections, images, fonts, media and frames on https://ottla.ai and https://*.ottla.ai, plus the live chat connection, so there is nothing to add, even on a store that enforces its policy for scripts, such as a Hyvä CSP theme in strict mode.
A CSP error in the browser console that names ottla.ai means the module’s entries are not in force: check that the module is enabled (bin/magento module:status Ottla_Connector), then run bin/magento cache:flush.
The chat itself is rendered inside its own shadow root, so your theme can’t bleed styles into it, and vice versa.
FAQ
Frequently asked questions
Do I need a Hyvä compatibility module?
No. The only exception is “Request a quote” on Adobe Commerce B2B, which needs a Hyvä B2B compatibility module.
Do I need to rebuild Tailwind?
No. It doesn’t use Tailwind at all. The module ships with its own stylesheets and never adds Tailwind classes to your build.
Does it work with Hyvä CSP?
The module’s scripts are built for it: inline scripts are registered with Hyvä’s CSP helper and there are no Alpine expressions. Its CSP entries cover everything it loads, so there is nothing to add to your policy.
Does it add anything to Hyvä Checkout?
Not unless a placement targets the checkout. By default the checkout and order confirmation pages carry no Ottla blocks.
Which Hyvä versions are supported?
Hyvä 1.3 to 1.5, and yes, that includes Hyvä Checkout.
Next
Install the Magento 2 module
Requirements, connection, sync and troubleshooting.
Configure the widget
The UI, wording and behaviour of the chat itself.
Ottla for Hyvä stores
What shoppers see on a Hyvä storefront when they use Ottla.
Go-live checklist
The checks to run before launch.